Fixed Drag and drop to editor upload

Chris D

XenForo developer
Staff member
I'm relatively sure this is a browser/OS issue but I just thought I would check.

In Chrome on Windows, I can click and drag from the Download bar, e.g.

upload_2014-7-11_19-2-51.webp

Into the editor and it will upload that file.

In Chrome on Mac, I can't.

The editor does detect that there is something being dragged as the message "Drop files here to upload" appears, but nothing happens when the item is dropped.

Presumably it's some sort of handling in Mac OS X that prevents this behaviour from working as expected, but just in case, I thought I would mention it.

Thanks,

Chris
 
In case it's of any relevance...

If there is a standard HTML file input on the page, I can click and drag files from the download bar to that. This just seems to affect the XF editor.

I can also drag from the download bar to Imgur and that catches the file for upload.

I had a quick look on StackOverflow and it appears people have had a similar issue before, and there's a potential solution here: http://stackoverflow.com/questions/19526430/drag-and-drop-file-uploads-from-chrome-downloads-bar
 
Setting the dropEffect to copy seems to sort this. I have no idea why this would apply to Chrome on Mac only.
 
Back
Top Bottom