I have multiple <input type="file name="uploadx">
. Is there any way I can automate file uploads during testing stage instead of upload them one by one?
Asked
Active
Viewed 54 times
0

hweiu321
- 103
- 4
- 14
-
Why don't you use `multiple` attribute in your `input` tag? like this. ``' – Web Star Dec 04 '21 at 03:01
-
To differentiate purpose of each file. – hweiu321 Dec 04 '21 at 03:15
1 Answers
0
What you're asking is for automation, as far as i know, that's not gonna be a easy task by just using the vanilla Javascript. You'll need a tool for the automation process. Any how, if you don't want to select and upload each file one by one. There is an attribute 'multiple' that you can use in file element to select all the files at once and upload them.
<input type="file" id="files" name="files" multiple>

p4avinash
- 548
- 2
- 4
- 15
-
I need to test multiple file instead of uploading multiple files at once. Thanks – hweiu321 Dec 06 '21 at 06:46