stephenmcd / filebrowser-safe

File manager for Mezzanine
Other
41 stars 104 forks source link

Can't upload files to folders with dashes #61

Closed jerivas closed 8 years ago

jerivas commented 8 years ago

Hey everyone. I've been using the HTML5 uploader for a while, and I think I encountered a problem uploading files to folders with dashes in their name. To reproduce:

  1. Navigate to a folder with dashes in the name in Filebrowser.
  2. Open the upload widget and add something to the queue.
  3. Hit upload. The widget reports a "Server error".

At this point, nothing has been uploaded to the folder in use, but a new folder has been created as a sibling of this one. The name is the same, but with the string \u002D instead of dashes. For example, my-folder will create a sibling my\U002Dfolder when you try to upload something. The new folder will now have the files you just uploaded.

stephenmcd commented 8 years ago

Thanks Ed

jerivas commented 7 years ago

Leaving a comment for future reference (of myself and others who need to support old releases of filebrowser-safe): The fix is: https://github.com/stephenmcd/filebrowser-safe/commit/bf074a4f04fe371bdb33c1ef4908e4ddb9987f55#diff-277957d7795fc51ddf9145e686c47fc3