I am trying to automate a file upload process for a courier we use. I need to upload a CSV file with a form on there website. But it seems I cannot use the DOM to change the input value for a file input.
Is there a way I can do this? I am trying to do it like this;
...Document.getelementbyid("userFile").innertext = filepath
But it doesn't change?
Any idea
innerTextorinnerHTML, butvalue. Also, khm, proper capitalisation.new FileReader().read(), it will grab the current file contents, updates and all. so, if you left your page open, you can run a poll on the input and upload changes when they happen. i made the watchfile lib for this purpose: github.com/rndme/watchfile