I have an input field:
<input type="file" id="inputID" name="file">
When the button for sending is clicked, the JavaScript function is executed (url: upload.php). I need to have access to $_FILES["inputID"]["tmp_name"] from this input field so that I can use it on upload.php as,
move_uploaded_file($_FILES["inputID"]["tmp_name"], $target_file)
Is it possible?
At the moment, I get an error message:
Note: Undefined index: inputID
Any help would be greatly appreciated.
Thank you very much!: -)
source share