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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request.Form & BinaryData (form upload)

Status
Not open for further replies.

Caradog

Programmer
Jun 28, 2000
73
GB
I'm uploading files to a web server no problem at all using pure asp via a form set to miltipart/form-data. A little slow but achives what is required. Now I have to validate new data before going live, however I know form experience in the past that you cannot use a Request command before or after posting a multipart data form.

But I need too in this situation...

I need to validate the file type chosen from a drop down menu to the file selected by the user, ideally before the file is upload by the ASP code.

Q1. Is there anyway I can pass this data to the next page along wth teh binary request and still be able to process it as if I was requesting the form value?

I've used .dll's in the past which are faster at uploading but the one I'm uisng at the moment seems to use multipart on the background too.

Q2. Any one know of a server upload plugin that doesn't?

Ta. Jace Hayman
jason.hayman@virgin.net
 
Caradog,

There is a file upload utility here at this link.


It allows you to have other objects on your form for input and I have used it to upload files with usernames, passwords. It separates REQUEST data from the file stream.

Instead of using reqiest.form("variableName"), you can use Uploader.Form("variableName"). Down load the code and check out uploadexmple.asp.

Cheers,
fengsui_1998
 
Cheers FengShui1998, you're a star. Jace Hayman
jason.hayman@virgin.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top