473,498 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASPForm

I have a bit of 3rd party code to upload selected files. The for is created
like this :

Dim Form: Set Form = Server.CreateObject("ScriptUtils.ASPForm")

In the code it creates a file field like this :

File 1 : <input type="file" name="File1" size="30">
File 2 : <input type="file" name="File2" size="30">
etc.

On submit, it uploads the forms like this :

Form.Files.Save DestinationPath

(Destination path is specified elsewhere in the form)

It's all working fine, but what I would like to do is access the name of the
file. Other form values can be obtained with e.g. :

Form("Directory")

But Form("File1") doesn't work I've also tried Form.Files[0] and
Form.Files[0].name, doesn't work either.

What I want to do is add the uploaded filename a selection list in the
calling page, but that is a different matter for the javascript group. How
do I access the names of the files??? Thanks!

Jul 19 '05 #1
1 5038
You have to access all the other form values through whateer way the
component you're using offers you access to them. One common way for upload
components is:

UploadComponentObjectName.Form.Item("nameOfFormInp ut")

You'd have to look this up in the documentation for your upload component,
wherver you got this ScriptUtils.ASPForm component.

Ray at home

"Simon Wigzell" <si**********@shaw.ca> wrote in message
news:6Om7c.872594$X%5.599281@pd7tw2no...
I have a bit of 3rd party code to upload selected files. The for is created like this :

Dim Form: Set Form = Server.CreateObject("ScriptUtils.ASPForm")

What I want to do is add the uploaded filename a selection list in the
calling page, but that is a different matter for the javascript group. How
do I access the names of the files??? Thanks!

Jul 19 '05 #2

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

Similar topics

1
3308
by: cynth- | last post by:
Greetings! I am successfully generating an HTML-formatted email using ASP and a NewMail object. It works great. The content of the email includes a simple HTML form that posts to an asp page....
1
3316
by: dk | last post by:
my asp.net applications run as http://localhost:8082/appname/webform.aspx - i've downloaded a sample aspx solution, and get the following error when trying to open it: "Unable to open web...
2
7625
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but...
2
2882
by: hotflash | last post by:
Hi Master CroCrew, I found a good PURE ASP that will allow you to upload 10MB file to the server and the file contents such as Network, Author, Title, etc... will insert to MS Access at the same...
1
1608
by: tangteng | last post by:
Hi, I'd downloaded the Huge ASP upload 60 day evaluation version at http://www.motobit.com/help/scptutl/upload.asp. After installing it, I run into the error below: "Invalid class string...
0
2651
by: ll | last post by:
I'm working with 'pure ASP upload' script which is designed to redirect to an alert/error message, should a file larger than the set limit be attempted to be uploaded. The problem is that, while...
0
7125
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
7002
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...
0
7165
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,...
0
7203
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...
1
6885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
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...
1
4908
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...
0
4588
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
290
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.