Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Using insert record function with a 'multipart/form-data' form

Posted on 2003-03-07
Medium Priority
Last Modified: 2012-06-21
I have a form which uses file upload function and so is multipart/form-data. The form also uses record insert function to a database. Also I have included a small Java Script form validator.

When I run this I expected the form data to be saved in a database record and the file upload data to be passed to the following page where the file acceptor is.

What does happen when I submit the form is the form resets, but there is no error messages and no new record is saved in the database.

The form tag is:
<form name="form1" enctype="multipart/form-data" action="<%=MM_editAction%>" method="POST" onSubmit="return Form_Validator(this)">
Where 'MM_editAction' is the Dreamweaver insert record function. This action has the RedirectURL set to the file acceptor page.

If you need any more of the code please let me know.
Question by:cer_developer
1 Comment
LVL 28

Accepted Solution

sybe earned 320 total points
ID: 8089040
enctype="multipart/form-data" will leave all Request.Form data empty. Because the format (encoding) by the browser is done differently.

Look here: http://www.taka.nl/programming/asp/pseudorequest/default.asp  for a pure script solution to solve your problem.


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
No other job is as rewarding and demanding as building an iPhone app is. It is not really in the hands of the developer for the success of an iPhone app. Many factors operate jointly for every iOS application's success in the market.
The viewer will learn how to count occurrences of each item in an array.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question