cozy-files icon indicating copy to clipboard operation
cozy-files copied to clipboard

Cannot upload an empty file

Open alpha14 opened this issue 10 years ago • 5 comments

Upload Error /lol Cannot upload a folder with Firefox (upload_queue.coffee:242)

Tested on firefox and chrome

alpha14 avatar Dec 04 '14 16:12 alpha14

Steps to reproduce:

$ touch myFile
  • upload the created file
  • error is triggered

jsilvestre avatar Dec 04 '14 16:12 jsilvestre

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.

jsilvestre avatar Dec 08 '14 10:12 jsilvestre

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 :)

jsilvestre avatar May 20 '15 10:05 jsilvestre

When using Chrome, this happens when uploading a folder full of empty files too, but with a weird error (I repeat: using Chrome):

cozy-files-bug

There are as much error messages (stacked) as there are empty files in the folder.

nicofrand avatar Feb 23 '16 19:02 nicofrand

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).

jsilvestre avatar Aug 11 '16 09:08 jsilvestre