PDA

View Full Version : Request.BinaryRead & Request.Form


ghell
04-15-2004, 05:45 PM
I am trying to make a form that lets some text be entered or a file be uploaded (3 radio buttons are for none, text, file and that decides weather it is uploaded or reads the text input) the file upload seems to require enctype="multipart/form-data" in the form and this stops request.form from working, so i try to upload using the files from http://www.stardeveloper.com/articles/display.html?article=2001042501&page=1 but this does not explain the code in very much detail which is not very good since its so huge

is there a simple asp tutorial (or one of your snippets) for the code for uploading files (and reading from text inputs in the same form if possible)

hmm, a good example of the sort of form im trying to make is the avatar options on invision boards where you can enter a url or upload a file from the same form (on mine both fields may be entered but only one (or none) is acted on depending on the value of radiobuttons)

miranda
04-15-2004, 06:12 PM
Are you using an Upload component? if so what does the documentation for the component say? for example to do what you mention with Persits Upload you use upload.form in lieu of request.form

fractalvibes
04-15-2004, 09:19 PM
good luck then

ghell
04-16-2004, 09:11 AM
i know you cant do a request.binaryread after a request.form or vice versa, i just waned to konw how to do it, a link to a site that i have to pay for is not a great help because theres no way in hell im paying for a crap site like that

glenngv
04-16-2004, 11:46 AM
Free Pure ASP File Upload (http://www.asp101.com/articles/jacob/scriptupload.asp)

ghell
04-16-2004, 12:27 PM
thanks glenngv, at the moment i am looking into http://www.freeaspupload.net/ but asp101 explains it better it seems, i am going through it at the moment, hopefully that pain in the "neck" background wont fry my brain too much