Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple File Upload in ASP 1

Status
Not open for further replies.

aspRookie1

Programmer
May 26, 2004
9
US
Hi,
I am very new to ASP and stuck at the file upload thing.

I want to make a web page which lists all the files from a particular folder from client machine,display them with the check box.Also there will be single upload button.This button uploads all the files which has been selected by user(check box checked)to the server.
I am not sure whether I should use ftp or file Upload method here.

Please let me know if somebody has any idea about how this could be implemented.
Thanks

 
You cant display the files on client machine unless if they are permitting your script to access theyr disk.
But you can use any <input type=file> you want and an uploading component.
There are some script only upload components as well.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Thank you for your help.
I tried using upload component,but my problem is I want to upload multiple files(say all files from a particular folder)just in one click.That means if user clicks Upload button, all files should start uploading and user doesn't need to sit there waiting for the completion.Since there could be 15- 20 files for uploading,if user connect through dialup it could take lot of time for waiting and uploading these many files.
If i use upload component for this User has to click browse button for so many times and then has to sit waiting for the files to be uploaded.
Is there any way I can incorporate this??
Thanks

 
You cant do that without asking user to accept that your script can access you drive.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
I was thinking to use javascript to list all the files of the particular folder of client machine.Without javascript it would be hard to browse client machine.
If not how do I get the permission of user??
Thanks Again
-Swati
 
Hi,

I don't like to advertise peoples products in general but the upload component at could be what you are looking for. However it needs a component installed on your ISP's webserver, which you would have to check with them about.

I have used it on our webserver where it was already installed and you can put as many 'file upload select boxes' in your form as you want so users can select a bunch and then leave them uploading.
 
Thanks,I visited that site,I couldn't see the demo,I downloaded the files and will try to run it.After reading the documentation I feel that it could solve my problem.Only thing I was concerned was Can I upload jpeg,mp3,mpeg files through this or just the text files.
Thanks Again.
 
With Javascript if the user has it disabled he cant do a thing, or with and Acvtive X component at client would work on IE only and also can be disabled.

If the Javascript will work there is no way of asigning an file to the <input type=file> without the browse button. This tag doesnt work with script it needs to get the file using it's browse button.

The best aproach is to use an Java component at the client who will get the files and will send to the server one by one. But also this would need disk access to the clients machine.


________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Aspsmart uploads all file types as far as I know. Be careful to set the file extensions control to limit what types are allowed to be uploaded. You dont want people uploading malicious files....

 
So If I use java component for accessing cilent machine,I have to use same for Uploading also right???

Also I downloaded the files from ASPSmart.The program in demo is the one I need but it seems it is not free.I will need SmartXUpload.cab file which I couldn't download.It seems I can get just the trial version free for some days.

Any idea??
Thank you all for your help.
 
I dont knw i never used that program, but it seems that is what you need.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
I did check ASPZone.com.It is good site for upload code but my problem is I don't want user to click Browse button several times.I just want user to click one button Upload and all the files would get uploaded to server.
The demo in aspSmart.com works well as my requirement but I am not able to get the code for that.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top