X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=README.md;h=06717bef88bda2ac979871e9c640b9be5c30cec7;hb=909ad54f74dbe53dbae1f2655f6210dfc5cebf79;hp=31c5fa737e6eb99571cbf6aec321f31099622f3d;hpb=c83063a576530b02554aefc2c71aeb69263aff12;p=simple-upload.git diff --git a/README.md b/README.md index 31c5fa7..06717be 100644 --- a/README.md +++ b/README.md @@ -12,16 +12,25 @@ Just drop a PHP file in any directory. It will work straight away There are few options that you can change by editing the file itself: -- `$settings['uploaddir'] = '.';` +- `uploaddir => '.'` Directory to store the uploaded files. Defaults to rurrect script directory -- `$settings['listfiles'] = true;` +- `listfiles => true` Option that will list all files in uploads directory. Enabled by default +- `debug => false` + To display debugging information + ## Usage options - Through interface: - - Click on upload message - - HTML5 Drag'and'Drop (via dropzone.js) - - No Javascript HTML Form fallback + - Choose files via dialigue + - Drop files, via HTML5 drag'and'drop (using [dropzone.js](http://www.dropzonejs.com/)) + - Basic HTML Form (if no JavaScript is suported) - Upload using any compatible tool (like cURL) + + This example will upload a file and copy URL to clipboard: + + ```bash + curl -F "file=@file.jpg" your-host/sharing/ | xclip -sel clip + ```