Home | Advertising Info191 USERS CURRENTLY ONLINE   
   Site Search Contact Us Sunday, May 27, 2018  

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 ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET 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 - 2018 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 asp search engine active server page asp application components tutorial 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