odysseyscience / react-s3-uploader

React component that renders an <input type="file"/> and automatically uploads to an S3 bucket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get the current file name in onProgress in case of Multiple File Upload ?

naxir opened this issue · comments

Third argument to onProgress is the file. I believe it has a name property`. Can you check and confirm? Thanks!

@seanadkinson I have checked the Repo Code of ReactS3Uploader.js we have to pass third argument i.e file to get the filename in getDefaultProps function() { }

correct me if i am worng
Thanks
onProgress: function(percent, message) {
console.log('Upload progress: ' + percent + '% ' + message);
},
It will work fine if i will do that but i think the package should be update verify also at your end.