zefoy / ngx-dropzone-wrapper

Angular wrapper library for Dropzone
MIT License
174 stars 51 forks source link

Upload to AWS s3 bucket using a Pre-signed URL #58

Closed rahulbagal closed 7 years ago

rahulbagal commented 7 years ago

Hi ,

I am using this library and trying to upload file to AWS s3 bucket using a Pre-signed URL. I need to implement something like below . How do I implement it ?

new Dropzone(element, { url: pre_signed_upload_url, method: "PUT", headers: {"Content-Type": "image/jpeg"}, sending: function(file, xhr) { var _send = xhr.send; xhr.send = function() { _send.call(xhr, file); }; } });

Ref: Lendar's comment

sconix commented 7 years ago

Its the same with this library there is no difference. This just wraps Dropzone so anything you can set in the Dropzone config you can set in this library config and it gets passed directly to Dropzone when its created.