Live data from Hacker News

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

dropzonejs.com

1–10 of 33 posts

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

#5
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.

I assume you mean the black bar problem? It's a bug in iOS when you try to resize images client size. There's no workaround (besides disabling client-side image processing for iOS) AFAIK.

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

#6
post #5
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.

I assume you mean the black bar problem? It's a bug in iOS when you try to resize images client size. There's no workaround (besides disabling client-side image processing for iOS) AFAIK.

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.

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

#8
post #6
post #5

Earlier quoted context omitted.

I assume you mean the black bar problem? It's a bug in iOS when you try to resize images client size. There's no workaround (besides disabling client-side image processing for iOS) AFAIK.

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!

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

#9

This is nice. Anyone know if it will work for direct uploads to S3?

I've been playing with browser uploads for a few weeks now (including S3) and was too worried about the complexities of uploading to S3.

I realized that there's nothing really fancy going on when uploading to S3. That's only true since Amazon added CORS support. Just add a few hidden form fields and you're good to go.

Properly populating those fields can be a bit tricky, however. This gem will does a great job and should give you a head start: https://github.com/waynehoover/s3_direct_upload

Post reply on HN