input file form tag

R

Richard

I have a client who needs to upload the same 7 files twice a week to
his web server. FTP is unfortunately not an option as the client is a
novice, so I have created an admin interface to his website so he can
easily upload the necessary files.

The upload pages uses simple input file tags. Server side is
AspUpload.

However, the client is finding the process of locating the same 7
files twice a week too laborious and wants the admin page to locate
the files automatically.

I naively told him 'no problem' as I was under the impression I could
set the input file tag's value using asp :-( I even tried using an
input text tag with a multipart form, but no luck.....

Any suggestions on alternatives or workarounds would be great.
Ideally, I need ASP to feed the filenames into whatever is needed so
the client can upload the files using just one or two clicks.

Thanks for any ideas, R
 
T

Tim Slattery

I have a client who needs to upload the same 7 files twice a week to
his web server. FTP is unfortunately not an option as the client is a
novice, so I have created an admin interface to his website so he can
easily upload the necessary files.

He can't learn to use WS-FTP LE or any of the free FTP clients? These
things are no harder to use than a Web file upload page.
However, the client is finding the process of locating the same 7
files twice a week too laborious and wants the admin page to locate
the files automatically.

I naively told him 'no problem' as I was under the impression I could
set the input file tag's value using asp :-( I even tried using an
input text tag with a multipart form, but no luck.....

Impossible. <input type="file"...> is read only. If you could write a
assign a value to it with script then any random web site could upload
ANY file from your computer without your knowledge.

An FTP client could be configured to open to the correct directory.
 
P

Patrice

This property is readonly (for security reasons). You'll need to have some
kind of client side installation (ActiveX Control, Java applet or just a VBS
script using XMLHTTP or something similar to post the files directly to your
upload page).

Patrice
 
T

Tim Slattery

Or better yet, write a script for the command-line FTP client. Write a
*.cmd file to invoke the command-line FTP client and read the script,
and have a shortcut on his desktop point to that.
 
R

Richard

Thanks for the advice guys. I guess I'd better get cracking on
learning on XMLHTTP.....R
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,881
Members
47,418
Latest member
NoellaXku

Latest Threads

Top