Home | Advertising Info115 USERS CURRENTLY ONLINE   
   Site Search Contact Us Sunday, October 22, 2017  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.


We didn't realize
the site was so popular.

Other Stuff

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: Re: ASP file upload question
From: Neilam Chaudhari
Date: 5/3/2001 5:12:06 PM


I had the same problem, but I found out that my server running IIS5.0 had ASPUpload installed. I used the documentation for that to actually upload the file to a specified directory. Here is the code (it must be within <form></form> tags):

Set Upload = Server.CreateObject ("Persits.Upload.1")
Count = Upload.SaveVirtual ("/data")
msg = "<font face=times size=3 color=#FF0000><b>" & Count & " file(s) attached</b></font>"
Response.write msg

If you can get the file to your directory another way, here is the code to parse the file from the form so you can extract just the filename to insert into your database (assumes File1 is the name of the input field for the file):

my_splitfile1=Split(my_fullfile1, "\")
(Server.Mappath("/data/" & my_file1))

Just replace "/data/" with whatever folder holds the file you want and replace "File1" with the name of the file input box on your form. I hope this helps.

Previous Message


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2017 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com