Fixing 2 regressions from the initial pull request

This commit is contained in:
Pierre-Alain Bandinelli 2016-05-15 15:54:44 +02:00
parent 01552dad82
commit bc308ac56b
2 changed files with 8 additions and 8 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,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>