cloudinary/cloudinary_android

When calling `MediaManager.get().upload()` then upload happens more than once

Closed this issue · 4 comments

Hi,

sorry to ask this question here, but when I call

MediaManager.get().upload(file.absolutePath)
                    .callback(UploadListener())
                    .unsigned("mypreset")
                    .constrain(TimeWindow.immediate())

for some reason the android job scheduler fires multiple jobs to upload the image resulting them spamming the media library (70 images in 5 minues).
Do I do something wrong or am I using the library in a wrong manner?

Thanks in advance

@hayribakici Could you please share with me your the project?

hey!

Thank you for your quick response. The problem lied wrapping the upload in RxJava Observables. Apologies for the inconvenience.

Sincerly

Thanks for the update! So can I close this issue?

yes :)