cozy-files
cozy-files copied to clipboard
Cannot upload an empty file
Upload Error /lol Cannot upload a folder with Firefox (upload_queue.coffee:242)
Tested on firefox and chrome
Steps to reproduce:
$ touch myFile
- upload the created file
- error is triggered
This is kind of awkward, I don't think I'll be able to fix it. It happens with empty files with no detected type (no extension) which is kind of a rare case, so I don't fix yet, waiting for a good idea.
Gave this another shot. Still not fixable because there is no difference between an empty file with no mime type and a folder when you drag and drop in Firefox. Always open to ideas :)
When using Chrome, this happens when uploading a folder full of empty files too, but with a weird error (I repeat: using Chrome):
There are as much error messages (stacked) as there are empty files in the folder.
We requalified this bug as enhancement, because the error is caught. The enhancement would be to support upload of empty file, if possible, and anyway to have proper error messages for each case (see https://github.com/cozy/cozy-files/issues/447).