Hi Guys, i've downloaded some ASP code which can upload files and it can insert file name, size to the database. also it allows you to specify the database path and upload folder path. Now i want to add a textarea in the form and can the file introduction form user, then instert it to the database when file is uploaded. but the problem is i cannot get value from the textarea and it always the blank in the database. i upload the zip file, some one can give me a hand?? cheers p.s. i've add a data field in datas.mdb called intro, and i write dim file_intro file_intro=request.Form("intro") try to get the value from the textarea(name intro) this code is placed at the beginning of uploadScript.asp file
Forms in ASP do strange things when you're uploading binary data. First thing I would say is try to retrieve the ascii data FIRST - before unleashing your downloaded code on the rest of the form. If you have the ability to install components on your server, I would recommend you take a look at ASP Upload, which is the component I use. This component has its own properties which allow you to access the text elements of the form as well as the binary data.
Have you tried the asp upload component from persits software it makes uploading files and images a breeze! Just a few lines of code
Make sure in the form tag there's the right enctype: <form action="submit.asp" method="POST" ENCTYPE="multipart/form-data"> HTML: Hope this helps