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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

777 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