Merge pull request #27 from pierre-alain-b/master

Just as a complement, polishing a few things
This commit is contained in:
Eric Johansson (neku) 2016-05-15 17:03:01 +02:00
commit d243f47ed8
3 changed files with 9 additions and 9 deletions

View File

@ -30,12 +30,12 @@
Alias "/files" "/var/www/Uguu/public/files/"
<Directory /var/www/Uguu/public/files/>
<Files *>
SetHandler default-handler
</Files>
AllowOverride None
Options -Indexes
Require all granted
<Files *>
SetHandler default-handler
</Files>
AllowOverride None
Options -Indexes
Require all granted
</Directory>
</VirtualHost>

View File

@ -11,6 +11,6 @@ define("CONFIG_ROOT_PATH", "/path/to/uguu/");
define("CONFIG_MAX_RETENTION_TIME", "60"); //Max retention time in minutes
define("CONFIG_MAX_RETENTION_TEXT", "1 hour"); //Max retention time as a text to be displayed
define("CONFIG_RANDOM_LENGTH", "12"); //Length of the random chain appended to the filename
define ("CONFIG_BLOCKED_EXTENSIONS", serialize(array("exe", "scr", "rar", "zip", "com", "vbs", "bat", "cmd", "html", "htm", "msi")));
define ("CONFIG_BLOCKED_EXTENSIONS", serialize(array("exe", "scr", "rar", "zip", "com", "vbs", "bat", "cmd", "html", "htm", "msi", "php", "php5")));
//https://wiki.gentoo.org/wiki/Handbook to set this string correctly
define("VERYLO_NG_STRING_THATDOESNTREALLYD_O_ANYTHING", "ok");

View File

@ -11,8 +11,8 @@
<p>ShareX: <a href="https://getsharex.com">https://getsharex.com</a></p>
<span class="card-title">API</span>
<p>To upload using curl or make a tool you can post using:<br />
<code>curl -i -F name=test.jpg -F file=@localfile.jpg https://uguu.se/api.php?d=upload</code> (HTML Response)<br />
<code>curl -i -F name=test.jpg -F file=@localfile.jpg https://uguu.se/api.php?d=upload-tool</code> (Plain text Response)</p>
<code>curl -i -F name=test.jpg -F file=@localfile.jpg {$url_filename}/api.php?d=upload</code> (HTML Response)<br />
<code>curl -i -F name=test.jpg -F file=@localfile.jpg {$url_filename}/api.php?d=upload-tool</code> (Plain text Response)</p>
</div>
</div>
</div>