]>
Commit | Line | Data |
---|---|---|
35bc7430 | 1 | # About |
1aa80910 | 2 | [Uguu.se](http://uguu.se) source code, stores files and deletes after X amount of time. |
8805b1c1 GJ |
3 | |
4 | # Install | |
87451310 | 5 | Tested with Nginx+PHP5-FPM (PHP 5.4) on Debian 7 Wheezy and Apache (PHP 5.4) on Ubuntu 14.04 LTS |
8805b1c1 GJ |
6 | |
7 | Modify core.php where to save the files, add check.sh to Cron, edit everything else to your likings. | |
8 | ||
35bc7430 GJ |
9 | Change php.ini and nginx.conf settings to allow bigger uploads. |
10 | ||
87451310 GJ |
11 | Make the rain/cache/ directory writable to whatever webserver you use. |
12 | ||
8805b1c1 GJ |
13 | # Todo |
14 | ||
15 | Proper design, commit new design and updated code (when finished, in preview phase). | |
67a54d5c GJ |
16 | |
17 | ||
18 | # Using the API | |
19 | ||
5e91ffa4 GJ |
20 | Be sure to set a user agent, otherwise CF might reject you as malicious. |
21 | ||
67a54d5c | 22 | Leaving POST value 'name' empty will cause it to save using the original filename. |
a7aa2c74 | 23 | Leaving POST value 'randomname' empty will cause it to use original filename or custom name if 'name' is set to file.ext. |
67a54d5c GJ |
24 | |
25 | Putting anything into POST value 'randomname' will cause it to return a random filename + ext (xxxxxx.ext). | |
26 | Putting a custom name into POST value 'name' will cause it to return a custom filename (yourpick.ext). | |
92da2e3c GJ |
27 | |
28 | ||
29 | This will probably get changed later since it's messy and unpractical. | |
3c2df123 GJ |
30 | |
31 | # Contact | |
32 | ||
33 | [neku@pomf.se](mailto:neku@pomf.se) or [@Nekunekus](https://twitter.com/nekunekus). |