How to bypass jQuery popin when no file was selected ?

Archived from the Transloadit support forum. Originally posted on November 7, 2011; details may be outdated, see our docs for current behavior. Original thread

Title says all I guess, I have a form with an optional upload field. I have found no solution for now other than checking for values in an existing onsubmit() handler, then calling form.transloadit() and submitting again…

I think it should also be the default behaviour but maybe it’s already and I’m doing something wrong?

thanks!

Hey Sylvain,

this is not the default behavior. I think for the new jQuery plugin version we will make this the default behavior though.

For now you are right that you need to check the input field’s value.

Kind regards,
Tim

Hey Sylvain,

this will be deployed next week. I will make an announcement blogpost on our company blog.

Please stay tuned.