]> jfr.im git - uguu.git/blob - README.md
Update README.md
[uguu.git] / README.md
1 # About
2 [Uguu.se](http://uguu.se) source code, stores files and deletes after 1 hour.
3
4 # Install
5 Tested with Nginx+PHP5-FPM (PHP 5.4) on Debian 7 Wheezy and Apache (PHP 5.4) on Ubuntu 14.04 LTS
6
7 Modify core.php where to save the files, add check.sh to Cron, edit everything else to your likings.
8
9 Change php.ini and nginx.conf settings to allow bigger uploads.
10
11 Make the rain/cache/ directory writable to whatever webserver you use.
12
13 # Todo
14
15 Proper design, commit new design and updated code (when finished, in preview phase).
16
17
18 # Using the API
19
20 Leaving POST value 'name' empty will cause it to save using the original filename.
21 Leaving POST value 'randomname' empty will cause it to use original filename or custom name if 'name' is set to file.ext.
22
23 Putting anything into POST value 'randomname' will cause it to return a random filename + ext (xxxxxx.ext).
24 Putting a custom name into POST value 'name' will cause it to return a custom filename (yourpick.ext).
25
26
27 This will probably get changed later since it's messy and unpractical.
28
29 # Contact
30
31 [neku@pomf.se](mailto:neku@pomf.se) or [@Nekunekus](https://twitter.com/nekunekus).