473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

input file form tag

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
Jul 22 '05 #1
4 1975
ri************@yahoo.com (Richard) wrote:
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.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 22 '05 #2
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

--

"Richard" <ri************@yahoo.com> a écrit dans le message de
news:be**************************@posting.google.c om...
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

Jul 22 '05 #3
Tim Slattery <Sl********@bls.gov> wrote:
ri************@yahoo.com (Richard) wrote:
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.


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.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 22 '05 #4
Thanks for the advice guys. I guess I'd better get cracking on
learning on XMLHTTP.....R

"Patrice" <no****@nowhere.com> wrote in message news:<um**************@TK2MSFTNGP15.phx.gbl>...
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

--

"Richard" <ri************@yahoo.com> a écrit dans le message de
news:be**************************@posting.google.c om...
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

Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: lawrence | last post by:
I'm trying to read up on the rfc's that govern form inputs. Much of what I'm reading is stuff I didn't know before and some of it is alarming. This one left with me questions: ...
3
by: Ben | last post by:
Hi all, i have file input field in a form like this: <input name="isbn" type="text" size="25" value="<?php echo $_POST ?>" /> <input name="image" type="file" size="25" value="<?php echo...
1
by: Joel Goldstick | last post by:
I wanted to write a simple page to let me choose a directory and then list the files in it. The end goal was to make an easy way to copy all the file names in a directory. I tested with Opera7,...
2
by: J.R | last post by:
Greetings, I'm adding dynamically created input type='file' controls via JavaScript. However when I try to access they do not seem to be returned in the form collection. Any ideas? Thanks,...
5
by: Gregg | last post by:
Hello all, I have been banging my head over a problem that I am having reading a comma seperated file (CSV) that can contain from 1 to 10,000 records. My code snipit is as follows: **Start...
2
by: Quick Function | last post by:
For the <input type="file">, can I select directory? Multiple directories? Thanks, qq
3
by: Ben | last post by:
Here's my form: <form name="aForm" method='post'> <input type=file name=file1 onkeypress='KeyPress()'><br> <a id='attachMoreLink' href='javascript:AddFileInput()">Attach More Files </a> <input...
2
by: IkBenHet | last post by:
Hello, I am uploading a file using this form in ASP.NET. I have also added a simpel textfield: <form runat="server" enctype="multipart/form-data"> <input type="file" id="oFile" Name="oFile"...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
8
omerbutt
by: omerbutt | last post by:
hi there i have a form with multiple input (type/text ) fields and three inputs(type/file) fields i have to submit the form via ajax because i have multiple forms on this page ,you can say it is a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.