2
Good evening, I need some help on the input part, I have a
<input type="file" id="filesend" name="file" multiple/>
how do I make a script that automatically detects when the user puts a file in the input and sends a $_POST['file'];
to the upload.php
?
First, add
enctype='multipart/form-data'
form, since you want to send to a PHP file. Question: You want to create a form that does not need ainput
of the kindsubmit
, is that it? The user selects the file and the file is automatically sent without needing a click more?– StillBuggin
Is already added
– Leonardo Pliskieviski
Yes, I want the file to be automatically sent without the input type Submit
– Leonardo Pliskieviski
Beauty! Add onchange="this.form.Ubmit()" to
input
and ready.– StillBuggin