Automatic file upload
I am trying to write a script that will be launched automatically in a browser to upload a particular file on to my server. I have written code in the past that allows someone to select a file, but I want this particular file path to be predetermined and then automatically upload.
The file path will be "C:/CSVUload/**VARIABLECOMPUTERNAME***.csv
Each file name will have the COMPUTER NAME as the filename, and the CSV file will be the ONLY FILE in the folder.
Totally automated. No user interface whatsoever.
What's the best way to go about this?
I'm afraid this isn't going to work the way you seem to want it to. From the looks of this you are trying to automatically upload a file from a computer to your server through web languages. I can already tell you that it's impossible via any front-end language (none of these have access to a computer).
It could technically be done via PHP (or some other server-side language) but in that case PHP (and a server) would need to be running on any PC that will need to upload the file.
So in short, what you seem to want will require something other than what standard web languages offer.
I found a solution using VBS. Was able to load the site, select the file, and upload. We'll see how successful this is when it goes live to all our computers.