i'm trying to upload a file with php. The usual process is:
form POST->php
But i'm using this method:
form->button
with onclick
event that calls ajax/javascript function->ph
p script call from javascript
I'm passing the full form (this.form) to javascript, javascript do some stuff and send all the form inputs one by one to php using GET (xxx.php?xxx=xxx&yyy=yyy....)
, one of those inputs is a FILE , and I don't know how to send it to the PHP script trough javascript function.
Thanks in advance