Pass a file to the browser

January 20, 2011 at 10:20:43
Specs: Windows XP
I am trying to create a script that will open the default browser, and pass a file generated in a previous process to the browser for submission to a server, likely via FTP.

Any advice on how to pass the file to the browser?

See More: Pass a file to the browser

Report •

January 20, 2011 at 20:16:57
Uhm...sounds overly complicated?

Also - modern browsers can't upload over FTP. Windows Explorer can, but IE can't. (You'd need an HTTP upload...)

Why not script ftp.exe ?

Or use wget?

Getting the browser involved at all seems overly complicated, unless I'm missing something?

Report •

January 20, 2011 at 20:39:45
Thanks for your reply.

HTTP upload instead of FTP is a fine answer to part of the problem. FTP.exe would work to upload just the file. However, I need to associate user input, for example a free-text description of the file contents, with the file and upload the file to our server.

I am suggesting using a browser in order to avoid user installation of a program; allows easy control and modification of the HTML page the client uses to upload the file.

So the rough script for my project looks like:
start iexplore http: // pathname&file= filename

(spaces intentionally added)

where is a page that is built to accomplish uploading [pathname]/[filename] along with a user description of the contents of the file.

Basically my question is, is this feasible / would it work?

Report •
Related Solutions

Ask Question