iFrame ContentType

P

pbd22

hi.

i am trying to create a hidden iframe in my form that passes
some files for upload to the server. kind of a tricky way to
provide the user an "ajax-style" feel during upload.

the problem is that the files never make it to the server - the
..net httpfilecollection is always zero. after doing some
close inspection using the venkman javascript debugger, i
have discovered that the iframe contenttype is text/html.
as in uderstand it, uploads always have to be multipart/form-data.

______________________________________________________

how do i engineer my upload form so the iframe is the correct
contenttype?
______________________________________________________

i have done the obvious which is sent the enctype="multipart/form-
data"
in the form tag that encases the input files (type=file) for uplaod.

any ideas? i would be happy to provide code or a venkman summary
if you ask - just didnt want to overdo it. :)

thanks.
 
P

pbd22

hi.

i am trying to create a hidden iframe in my form that passes
some files for upload to the server. kind of a tricky way to
provide the user an "ajax-style" feel during upload.

the problem is that the files never make it to the server - the
.net httpfilecollection is always zero. after doing some
close inspection using the venkman javascript debugger, i
have discovered that the iframe contenttype is text/html.
as in uderstand it, uploads always have to be multipart/form-data.

______________________________________________________

how do i engineer my upload form so the iframe is the correct
contenttype?
______________________________________________________

i have done the obvious which is sent the enctype="multipart/form-
data"
in the form tag that encases the input files (type=file) for uplaod.

any ideas? i would be happy to provide code or a venkman summary
if you ask - just didnt want to overdo it. :)

thanks.

after some further debugging and guesswork, i am starting to think
that this program fails at the point when the querystring is being
passed
to the iframe object:

IFrameDoc.location.replace(URL);

has anybody out there had any problems with using location.replace()
as a way of passing the upload querystring through the iframe to the
server?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top