aces / Loris

LORIS is a web-accessible database solution for longitudinal multi-site studies.
GNU General Public License v3.0
145 stars 173 forks source link

[Imaging Uploader] Handle form upload errors #6873

Open nicolasbrossard opened 4 years ago

nicolasbrossard commented 4 years ago

Is your feature request related to an existing module? The imaging uploader should handle the errors produced when scan archives cannot be transferred/written on the server. It should provide the user with appropriate messages indicating what went wrong. This should be done in the isValid method of class `modules/imaging_uploader/php/imaging_uploader.class.inc.

Useful references:

https://www.php.net/manual/en/features.file-upload.errors.php https://www.php.net/manual/en/features.file-upload.post-method.php

nicolasbrossard commented 1 month ago

Just tested with an upload directory that's not writeable and it's as if the upload succeeds (it doesn't...) Changing from 'Proposal' to 'Bug' on 2024SEP17.