Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onStart parameter #36

Open
henryboldi opened this issue Nov 11, 2015 · 5 comments
Open

onStart parameter #36

henryboldi opened this issue Nov 11, 2015 · 5 comments

Comments

@henryboldi
Copy link

It would be useful if there were an onStart or onWaiting parameter where you can run a function before uploading starts, rather than checking the status inside of onProgress. What do you think?

Thanks!

@seanadkinson
Copy link
Contributor

That would be a fine enhancement. Can you provide an example of what you might do onStart?

@eagsalazar
Copy link

An example of what I might use onStart for (assuming a few things): I'd resize the images in the browser.

@eagsalazar
Copy link

Created PR #72

@eagsalazar
Copy link

Gist of how I'm using this to scale an image before uploading: https://gist.github.com/eagsalazar/83d5b222715f7267a4c0e02ec20b3c55

I import scaleImageFile and set param onBeforeUpload=scaleImageFile

@talbenbasat
Copy link

Hi @eagsalazar ,

Can I use this property to change the name of the file?
I sometimes encounter names in different langauges that aren't cleaned in the process and causes an error..

Can you please provide an example of how do I use this property, please

Tal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants