473,545 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1979
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.goo gle.com...
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******* *******@TK2MSFT NGP15.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.goo gle.com...
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
2980
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: http://www.ietf.org/rfc/rfc1867.txt Is this (below) addressed to me as a web designer, or is this addressed to the makers of web browsers? Identifying the type of...
3
4837
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 $_FILES ?>" /> when i press "submit" button, the same page gets loaded... if my $_POST is empty, i want to have the file path on "file input
1
5288
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, Mozilla 1.4 and IE6 -- all on windows XP Pro Here is the code. In all three, when I select a file, the complete path is displayed in the file...
2
6942
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, John.
5
2483
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 code snipit** Dim strCustFullName as string Dim strCustAddr1 as string
2
2963
by: Quick Function | last post by:
For the <input type="file">, can I select directory? Multiple directories? Thanks, qq
3
12905
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 type=submit value='Done'> </form>
2
5649
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" size="70" runat="Server"> <input type="text" SIZE="20" MAXLENGTH="20" id="Name" NAME="Name"> <input type="submit" id="Submit" runat="Server"...
15
4722
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 button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is...
8
2679
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 contact_us.php page.Now i can get all the inputs at the other end else the input(type/file) i donot want a submit button what i want that some how io...
0
7499
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7432
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7943
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7786
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6022
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5359
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3490
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.