Hello good people,
I'm using the dropbox saver in a NUXT application to save files to the user dropbox account after a certain task. There are some issues I'm facing while implementing this,
- I didn't find an option to cancel the upload in the SDK.
Sometimes the files are really big and we'd like to have a cancel option for the user for better experience. I see someone mentioned it's not there yet (here). Is it an upcoming feature? Can I somehow get notified if the feature is there? - For me the progress event () in the SDK says it'll return 0 to 1. But for me it's only returning 0 and 1. In some cases the progress 0 is not coming.
progress: function (progress) {},For our user it'll help to see a progress percentage and for bigger files when the progress 0 is not coming in the UI it feels like the upload is "stuck" and it may confuse the users. Is there any option to get the exact trigger when the user clicks save in the dropbox window so I can show a loader to the users? And is there any way to get more progress events? (like 0, 0.3, 0.5, 1)
My implementation
const options = {
success: () => {
this.$emit('saved')
},
// Currently when the progress is 0 I'm starting the loader.
progress: (progress) => {
this.$emit('progress', progress*100)
},
cancel: () => {
// showing the cancel alert
},
error: (errorMessage) => {
// showing the error alert
},
}