This is a discussion on "file field in ASP page" within the Classic ASP section. This forum, and the thread "file field in ASP page are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
file field in ASP page
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
file field in ASP page
Hi,
I am having a problem with file upload in ASP pages. ASP page breaks when I insert a "file field" input and form enctype is "multipart/form-data". Then I saw this: http://www.experts-exchange.com/Web/..._21600503.html which explains whiy.. However, through my search for another answer, I came by this: http://www.motobit.com/util/upload/old-upload.asp and this http://64.39.14.230/ig-asp/common/news.asp and other more without progress bars. Any ideas why they can have the "file field" and form enctype="multipart/form-data" and not break ASP pages? Any light shed on this matter is greatly appreciated. Thanks |
|
|
|
#2
|
|||
|
|||
|
Re: file field in ASP page
sorry, the first link should be : http://www.macromedia.com/cfusion/kn...fm?id=tn_16542
Thanks again. |
|
#3
|
||||
|
||||
|
Re: file field in ASP page
.... and you are using dreamweaver?
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#4
|
|||
|
|||
|
Re: file field in ASP page
Yup.. Im am using dream weaver to develop the page. If ever Dreamweaver is the one causing the problem, can you recommend me other tool that I can use to develop my ASP page?
Thanks.... |
|
#5
|
||||
|
||||
|
Re: file field in ASP page
I always use notepad....
Seriously though, I never use tools like dreamweaver.... or any other tools that mess with code. I prefer to be 100% control of all code so therefore notepad is my tool of choice.... obviously though it is a prerequisite that you know ASP pretty well.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#6
|
|||
|
|||
|
Re: file field in ASP page
Thanks for the quick reply Rob.. Notepad?! T.T Sorry but I am not an expert in this field.. But I will try right away. I will reply as quickly as possible hoping that you will guide e through this.
Thanks again! |
|
#7
|
||||
|
||||
|
Re: file field in ASP page
No worries....
It seems yiou really need to get your feet wet with ASP.... I can recommend a few good books that could easily give you the knowledge you need to do this...... One book I learned with many many moons ago, helped me learn ASP in a week.... after another week pulling existing applications to pieces I knew ASP to an advanced level (We are taking 7 years (ish) ago now... lol)
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#8
|
|||
|
|||
|
Re: file field in ASP page
Rob,
Hi. I cant still get this site working. I used Notepad in altering some code in the .asp page.. but it still breaks. I then removed the enctype="multipart/form-data" then the pages display successfully. But the thing is, I cannot include files in my form submission when form enctype is not "multipart/form-data" and if there are no file fields on the form. I can give you the pages that I am working on but it requires connection to a MSSQL database on this server. I reall appreciate your help. Thanks. |
|
#9
|
||||
|
||||
|
Re: file field in ASP page
Like I said.... you will need to know ASP pretty well.
You cant just change dreamweavers code because it's form handling stuff will need changed too.... no, you are going to need to learn ASP I think. I doubt many ASP developers would even want to try and hack apart the spagetti of rubbish dreamweaver produces.... although, you can post the code in theis thread (in code tags please) and we'll maybe take a look.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#10
|
|||
|
|||
|
Re: file field in ASP page
I dont think it is syntax that creates the error. Well, anyway, here it is(trimmed):
Thanks again!
Last edited by Rob; Dec 6th, 2005 at 07:17. |
|
#11
|
||||
|
||||
|
Re: file field in ASP page
Next time please use [code][/code] tags for posting code... it's much tidier... I edited your post and will look over it later.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#12
|
|||
|
|||
|
Re: file field in ASP page
Apologies. I didn't know how to use that.. I'm new to joining forums actually. Please bear with my ignorance.
Thanks again Rob. |
|
#13
|
||||
|
||||
|
Re: file field in ASP page
No worries.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#14
|
|||
|
|||
|
Re: file field in ASP page
.....im not even going to attempt picking that out
what do you need? an upload? im sure i cn send u a premade upload ive done..give me some more info tho...it might not be subatle for what you need.... Last edited by benbramz; Dec 7th, 2005 at 08:29. |
|
#15
|
|||
|
|||
|
Re: file field in ASP page
Hi benbramz,
I made a simple ASP page but very simple though (from the HTML version of an upload class i downloaded made by Jacob "Beezle" Gilley). The page did not break! I will still try to add some more fields, CCSs, and ASP codes in this page and see if it will show the same thing. Anyway, the site I am coding is, (1) It is an ASP page where I tried to insert 5 file fields into it, (2) it has ASP codes inserted everywhere in the HTML code, (3) breaks when these are satisfied: (a) enctype of form is "multipart/form-data" (b) there are existing file fields in the form. Any help is greately appreciated. Thanks! Note: What I mean with break is: the ASP page with file fields displays but when I submit the form to the next ASP action page, the next ASP action pages are not executed or displayed. |
|
#16
|
||||
|
||||
|
Re: file field in ASP page
I presume you know that when using multipart/form-data on a form, you cannot then use request.form on the next page.... it just doesnt work.
You can only get to the form fields by querying the upload object / class you are using.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|