From 2ed646262c52fe0366c276d140b9e4a87d01a232 Mon Sep 17 00:00:00 2001 From: Avail Date: Mon, 23 Feb 2015 19:09:15 +0100 Subject: [PATCH 1/3] Create file in cache dir That way github doesn't remove it because it's empty. --- rain/cache/dontremoveme | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 rain/cache/dontremoveme diff --git a/rain/cache/dontremoveme b/rain/cache/dontremoveme new file mode 100644 index 0000000..e69de29 From 97a3abb0c40b098b430c408d4bfe7e994f68fd63 Mon Sep 17 00:00:00 2001 From: Avail Date: Mon, 23 Feb 2015 19:13:47 +0100 Subject: [PATCH 2/3] Update readme.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c236468..9533f4e 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,14 @@ [Uguu.se](http://uguu.se) source code, stores files and deletes after 30 minutes. # Install -Tested with Nginx+PHP5-FPM (PHP 5.4) on Debian 7 Wheezy. +Tested with Nginx+PHP5-FPM (PHP 5.4) on Debian 7 Wheezy and Apache (PHP 5.4) on Ubuntu 14.04 LTS. Modify core.php where to save the files, add check.sh to Cron, edit everything else to your likings. Change php.ini and nginx.conf settings to allow bigger uploads. +Make the rain/cache/ directory writable to whatever webserver you use. + # Todo Proper design, commit new design and updated code (when finished, in preview phase). @@ -17,7 +19,7 @@ Proper design, commit new design and updated code (when finished, in preview pha Leaving POST value 'name' empty will cause it to save using the original filename. Leaving POST value 'randomname' empty will cause it to use original filename or custom name if 'name' is set to file.ext. - + Putting anything into POST value 'randomname' will cause it to return a random filename + ext (xxxxxx.ext). Putting a custom name into POST value 'name' will cause it to return a custom filename (yourpick.ext). From b88b863e789f17e55c17b2df3732431c60be937d Mon Sep 17 00:00:00 2001 From: Availu Date: Mon, 23 Feb 2015 19:20:08 +0100 Subject: [PATCH 3/3] Fix ability to write in the file's input field --- rain/template/upload.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rain/template/upload.html b/rain/template/upload.html index d6a4d2e..5eef6ae 100644 --- a/rain/template/upload.html +++ b/rain/template/upload.html @@ -5,7 +5,7 @@
File - +