Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2004, 08:02 AM
Registered User
 
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default FIle Uploading

Hi All,

  is there any way to upload multiple files without using file control. i.e. using a file control i'm able to get the list of files to upload on a text area. the files selected in the textarea should be uploaded to the server.

 it will be greatful if any of u help me.

thanks

nvenkat
 
Old February 23rd, 2004, 08:29 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Not unless you are prepared to put up with a security warning appearing to the user, or perhaps you are able to control the security settings because this is for an intranet application? Do either of these scenarios apply?

--

Joe
 
Old February 23rd, 2004, 12:18 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You need to use the file input type in the form. That is the input control that is responsible for posting the binary stream of the file to the browser. You can't have a textbox with a list of files, because that's all it is, a list. The server can't access the client's files so a list is no good. I don't think there is any way to post a file without using the file input type. If you want more than one file, you'll need more than one file input control.

As an alternative to multiple file input controls you could work some slick javascript to create hidden file input controls on the page for each file that's in the list so the browser does actually post the files to the server. This way you are just masking what the user sees while still using the html input control that you need.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old February 23rd, 2004, 12:32 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

File Input controls create a security breach when they are used programmatically. This is done to protect against people fishing for files. What you could do is create a control to od what you need certify it with your own certificate (I doubt in of the recognized companies would issue a certificate for such a control). Have your clients set their browsers to accept this certificate and use this control. However, I strongly advise not to try to circumevent the security. It is there to protect you.

Yehuda





Similar Threads
Thread Thread Starter Forum Replies Last Post
uploading a file MunishBhatia ASP.NET 2.0 Professional 4 May 30th, 2007 04:18 AM
Uploading a file with ASP BananaJim Classic ASP Professional 1 December 7th, 2006 06:57 PM
Uploading File misskaos Classic ASP Basics 4 October 26th, 2006 02:56 PM
file uploading lakshmi devi Classic ASP Basics 2 September 3rd, 2006 11:52 PM
File uploading zabedin Classic ASP Basics 1 July 16th, 2003 08:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.