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

Submit right after? #22

Closed
reggi opened this issue Jul 24, 2013 · 5 comments
Closed

Submit right after? #22

reggi opened this issue Jul 24, 2013 · 5 comments
Labels

Comments

@reggi
Copy link

reggi commented Jul 24, 2013

Is there any way that the form could be submitted right after upload?

@markusslima
Copy link
Owner

Formulate your question better. Preferably with example.

@reggi
Copy link
Author

reggi commented Jul 24, 2013

If one has a <form> containing a <input type="file"> tag it and you don't want a submit button (<input type="submit">), the form should automatically .submit() when the file is done being selected. Is there a callback that one could use to submit the form automatically after the file is selected.

@markusslima
Copy link
Owner

Friend

Você pode utilizar o .submit() normalmente, porém caso você queira enviar formulário via ajax não irá funcionar. Por questões de segurança um arquivo não pode ser enviado por ajax com exceção no html5.

This plugin does not alter the existing the form, it just hides it. So if you have problems with events in your form, ask you to send me the code of how you are using, oh yes I can better identify if there poblema in your code or the plugin.

@markusslima
Copy link
Owner

friend

You can use the. Submit () normally, but if you want to submit the form via ajax will not work. For safety a file can not be sent by ajax except in html5.

This plugin does not alter the existing the form, it just hides it. So if you have problems with events in your form, ask you to send me the code of how you are using, oh yes I can better identify if there poblema in your code or the plugin.

@reggi
Copy link
Author

reggi commented Jul 26, 2013

Thank you!

@reggi reggi closed this as completed Jul 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants