Upload Files to Active Server Pages

Upload Files to Active Server Pages

This tip works with ASP/IIS 4.0 and up. Many companies sell ActiveX objects for uploading files to Active Server Pages. However, you can easily write a bit of VBScript to handle the uploads yourself. The Request object has all the uploaded data:


" Response.Write GetFileData("file1") _& "

" Response.Write "file2: Filename = " & _ GetFilename("file2") & "
" Response.Write GetFileData("file2") _& "

" ' Writing out the file data like this only looks ' OK when the uploaded file is some kind of text '


Share the Post: