Many different questions here it seems, so let's deal with them one by one. Error first.
eDIENOT When I define 'allow_upload' => true, I have this message
Notice: Undefined index: option in /...path server.../gallerie.php on line 1843
and
php_directive_value_to_bytes( $directive = 'upload_max_filesize' ) .../gallerie.php:1858
Your server seems to be 1. set to output all "Notice" messages, and 2. some feature that is blocking true output of php_get('upload_max_filesize')
. Should really be resolved, because Files doesn't know your server upload limit, but you can fix the "Notice" by adding one line to index.php
. Locate this line 1842
:
preg_match('/^(?<value>\d+)(?<option>[K|M|G]*)$/i', $val, $matches);
Add a new line below it:
preg_match('/^(?<value>\d+)(?<option>[K|M|G]*)$/i', $val, $matches);
if(!isset($matches['value']) || !isset($matches['option'])) return 0;
eDIENOT So when an image is displayed we have the following menus: download, copy the link, open in a new tab.
The download sends the file to the client browser.
I don't see where the upload is.
The options available from the POPUP when an image is displayed, are for the image only. Upload options are available from the folder, in this case for example:
Optionally, you can also use drag-and-drop, if your website is on SSL (https).
eDIENOT My need is to move the download on the server to a specific folder that I have predefined.
I don't understand what you mean "move the download on the server". Downloads go to the visitors browser. Uploads go to the server. When a user uploads, the files will get uploaded into the folder from where the user triggered the upload.
eDIENOT Any way, I don't see upload menu and don't understand how to define a upload folder.
The upload can be hard to find, because I have been trying to keep the interface minimal. In a future release, I will offer options to make the upload-button more obvious, available in the topbar.