javascript - Style input file and auto submit -
I am trying to keep a single text link on which the user clicks and asks the user who he Upload the file then, post it automatically on the form matically. How can I get it? I know that I have to style my file input, but how to post it automatically on file selection?
Thank you very much
You can call the submission method of your form . This will deposit your page on the server and you can get the file in the request file collection.
You must call the "deposit method" form on the "OnNews" event, the "File" element.
& lt; Input type = "file" onchange = "formname.submit ();" ID = "F" /> Edit:
Comments
Post a Comment