I would like to know how can I upload a file after selecting it using HTML5 in that way:
<input type="file" .... />
The line above gives you the option to SELECT a file, now I need to upload it to the server. Since I don't know the answer I'll tag both php and Javascript.
<input>
is not exactly new. Slap a<form>
around it and submit it. (The form needs to be submitted via HTTP POST and must haveenctype="multipart/form-data"
.) – Carsten Jun 12 '13 at 11:23<input>
tag, so you can remove the final backslash. (This also goes for<img>, <hr>, <br>
and the likes.) – Marijke Luttekes Jun 12 '13 at 11:24