473,473 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Hybrid File Upload/Form Data

I have a form with a bunch of data that's input (dropdowns, textboxes, etc.)
and I have a link to a popup window which uses the persits control to upload
a file. They work well independently. The problem is, I now need to
combine them into one page. Essentially, at the very bottom of the page I
need to include a file browse control, then on the page that it posts to, I
need to be able to insert the relevant data into a database, as well as save
the file.

There has to be a way to do this easily, but I'm just confused about the
enctype="multipart/form-data" aspect and what I'll need to be wary of when
merging these two forms.

Thanks
Jul 22 '05 #1
4 1394
"James" <le********@verizon.net> wrote:
I have a form with a bunch of data that's input (dropdowns, textboxes, etc.)
and I have a link to a popup window which uses the persits control to upload
a file. They work well independently. The problem is, I now need to
combine them into one page. Essentially, at the very bottom of the page I
need to include a file browse control, then on the page that it posts to, I
need to be able to insert the relevant data into a database, as well as save
the file.

There has to be a way to do this easily, but I'm just confused about the
enctype="multipart/form-data" aspect and what I'll need to be wary of when
merging these two forms.


It works fine. You receive a MIME-forrmatted blob that can be parsed
to yield the name and value of every form element, including the name
and contents of the uploaded file. There can even be several files.

You'll probably need a component to parse this out and return items
that your ASP code can use. Such things are available, do a Google
search.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 22 '05 #2
"James" <le********@verizon.net> wrote in message
news:uH**************@TK2MSFTNGP14.phx.gbl...
I have a form with a bunch of data that's input (dropdowns, textboxes,
etc.)
and I have a link to a popup window which uses the persits control to
upload
a file. They work well independently. The problem is, I now need to
combine them into one page. Essentially, at the very bottom of the page I
need to include a file browse control, then on the page that it posts to,
I
need to be able to insert the relevant data into a database, as well as
save
the file.

There has to be a way to do this easily, but I'm just confused about the
enctype="multipart/form-data" aspect and what I'll need to be wary of when
merging these two forms.


Read the persists documentation - it should provide a detailed explanation
on how to handle this.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
Jul 22 '05 #3

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:Ok**************@TK2MSFTNGP15.phx.gbl...
"James" <le********@verizon.net> wrote in message
news:uH**************@TK2MSFTNGP14.phx.gbl...
I have a form with a bunch of data that's input (dropdowns, textboxes,
etc.)
and I have a link to a popup window which uses the persits control to
upload
a file. They work well independently. The problem is, I now need to
combine them into one page. Essentially, at the very bottom of the page
I
need to include a file browse control, then on the page that it posts to,
I
need to be able to insert the relevant data into a database, as well as
save
the file.

There has to be a way to do this easily, but I'm just confused about the
enctype="multipart/form-data" aspect and what I'll need to be wary of
when
merging these two forms.
Read the persists documentation - it should provide a detailed explanation
on how to handle this.


Actually Persits - www.persits.com

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running
IIS

Jul 22 '05 #4
And here is a pure ASP (i.e. no components) resource for letting the
user upload a file (and get the values of form fields):

ASP File Upload Using VBScript by John R. Lewis - 7/10/2000
http://aspzone.com/posts/160.aspx

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
2
by: mark | last post by:
How do I detect that a particular form element is a file upload or if the file upload has worked? In the Python cgi module documentation I found suggested code... form = cgi.FieldStorage()...
7
by: pbd22 | last post by:
hi. i am having probs understanding how to grab a file being uploaded from a remote client. i am using hidden input fields for upload such as: <input id="my_file_element" type="file"...
2
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.