When i create a form like this:
<form method='POST' action='gate.py'>
<input type='file' />
</form>
1) How i cant catch the response from the server, on a script?
2) I can send in a async way a file?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One option is to post your form to a hidden iframe:
Then from your “gate.py” script return some JavaScript code according to the result of the upload:
You could also interact with the parent to update a
<div>with the response.On the other hand, you could also consider using a third-party plugin like Uploadify.