Friday, July 24, 2009

File upload using ASP

while designing web form (like client Registration) we required some upload kind of
control ,for that here is a best example to do this

here u can upload (text file , image , pdf , video) and all

steps

1. open config.inc file and set the path from where u want to access file

strFolder = "C:\upload\files"
2. Specify the file size , 0 will give unlimited file size
lngFileSize = 10000

3.if you want to excluded the specify the files to be excluded and must be set to blank ("") if none are to be excluded
strExcludes = ""

4. if you want to include file then specify the file extension to be allowed
strIncludes = ".gif;.jpg;.mp3"


here is the complete source code of file upload

1 comment: