Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

Abort upload #58

Closed CyrilSabbagh closed 8 years ago

CyrilSabbagh commented 8 years ago

Hi, I am using ng-file-upload to upload images and I want to hook a cancel button that will abort the current upload process. I can't find a way to get the XHR request object so I can abort it. Do you have any tips on how I can do this? Thanks!

Lepozepo commented 8 years ago

Hi! There is currently no way to do it, you would have to patch the package to expose the xhr object from functions.coffee. If I get a chance some time today to patch it up I'll push an update but feel free to make a pull request ^_^

CyrilSabbagh commented 8 years ago

Done ! :)

Lepozepo commented 8 years ago

Sweet, it's in, thanks ^_^