Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

Can't get progress of multiple files uploading #70

Open khaledkbadr opened 8 years ago

khaledkbadr commented 8 years ago

I'm trying to build progress bar, the problem is I can't get the ID of the file that I'm uploading. I can do find on cloudinary db in minimongo. But it's not possible to show progress while the user upload multiple files. Is there anyway I can get the _id of the file the user is uploading immediately?

Secretmapper commented 8 years ago

+1

Lepozepo commented 8 years ago

Definitely, I'll be upgrading this package and S3 as soon as I switch to full-time Meteor development again, I can't wait!

fabianrios commented 8 years ago

how can you use the progress bar at least with one image? any example I'm lost.

Lepozepo commented 8 years ago

Hey @fabianrios! Take a look at the /example/basic folder. You can get multiple progress bars by tapping into the client-side only Cloudinary.collection object that has all the active uploads

Lepozepo commented 8 years ago

Oh, lol, that one doesn't show progress bars. Well from the Cloudinary.collection object you can do a fetch() and you'll see a key there (I forgot what it's called but something like upload_progress). Then render that to your DOM :D so something like width: upload_progress/100

mervynteo commented 7 years ago

@Lepozepo Could you perhaps write an example of how to set up a progress bar? would be very helpful! Thanks. So far {{percent_uploaded}} works for me but jumps straight to 100% without anything in between. Prefer normal js instead of coffeescript which can be confusing to decipher.