Live data from Hacker News

Dropzone.js - JS library for drag-and-drop file uploads with image previews

dropzonejs.com

21–30 of 33 posts

Re: Dropzone.js - JS library for drag-and-drop file uploads with image previews

#22
post #15

always struggle trying anything related to drag n drop on my ubuntu 12.10, because the moment i drag a file on nautilus the entire sets of apps get disabled on my unity sidebar except firefox and nautilus. and even firefox doesn't open so basically am stuck :(

You can use the window pinning (not sure of the right word) to quickly move a window to take half the screen by dragging it to either side. Then you can do the same with the the other window. Once done dragging to the top will fullscreen it again.

Re: Dropzone.js - JS library for drag-and-drop file uploads with image previews

#25
post #3

Wish people would stop depending on jQuery. Old browsers can default to a normal form input.

Why do you wish people would stop depending on jQ? I'm just curious.

Not everyone uses jQuery; I don't. This should be titled 'jQuery library...'

Re: Dropzone.js - JS library for drag-and-drop file uploads with image previews

#26
post #4

on iOS 6, iphone, I get a bug where it only shows me a fraction of the image I'm uploading in the preview. Does anyone know why this is? I had the same issue with jQuery-File-Upload.

Hi, I'm the author of Dropzone. iOS has a bug (as already mentioned by other users) resizing images in canvas. There are workarounds, and I already started implementation (https://github.com/enyo/dropzone/commits/ios-squas). Unfortunately ios-imagefile-megapixel doesn't meet my coding standards so I didn't want to just take the code of their implementation. I will release my fix soon.

Re: Dropzone.js - JS library for drag-and-drop file uploads with image previews

#27
post #8
post #6

Earlier quoted context omitted.

I've heard that https://github.com/stomita/ios-imagefile-megapixel works around the issue. I haven't had a chance to try it personally, yet.

Are you talking about this issue? https://direct.ilovefreegle.org/uploads/p17935j7131t5l2ql87a... If so, great to know that there's a fix!

Yes that's the bug in question. There isn't really a fix for it, but a very very ugly workaround. Look at ios-imagefile-megapixel to see how they fixed it if you want. Or you can wait a few days for my implementation will be better documented.

Re: Dropzone.js - JS library for drag-and-drop file uploads with image previews

#28

Nice. After dragging a file to the drop board, I couldn't remove it (FF18 OSX10.7). It would be nice if I could drag off as loading the wrong file seems to require a page refresh to undo.

I'm in the progress of developing hooks for removing (and programmatically adding) files. So this feature will be available soon. (https://github.com/enyo/dropzone/issues/36)

Re: Dropzone.js - JS library for drag-and-drop file uploads with image previews

#29

Looks pretty nice. For what it's worth, it seems like a lot of the other players in this space have gotten popular by providing tutorials for usage with Rails, PHP, etc. Might be worth a few paragraphs.

Thanks for the suggestion. I created an issue for it and will try to add it soon: https://github.com/enyo/dropzone/issues/37
Post reply on HN