| Author |
Message |
Tony Cheng
Guest
|
Posted:
Mon Jan 10, 2005 12:32 pm Post subject:
submit a form with a file upload |
|
|
I am making a form with several fields and a file upload file for user to
upload a document. I want to ask any special things need to handle while I
do it in MCMS ? such as how can I get the uploaded file ? Any suggestions
or samples I can get ? Thank you very much
Tony |
|
| Back to top |
|
 |
Mei Ying [MVP]
Guest
|
Posted:
Mon Jan 10, 2005 1:00 pm Post subject:
submit a form with a file upload |
|
|
Hi
If the form you are building does not interact with MCMS,
i.e. you aren't attempting to create/edit postings or
resource gallery items with it, then it's basically the
same as that for regular ASP.NET web forms. Just watch out
for the maximum file size limit set in the web.config
file. See here for details:
http://download.microsoft.com/download/4/2/5/4250f79a-c3a1-
4003-9272-2404e92bb76a/MCMS+2002+-+(complete)
+FAQ.htm#21529F34-A8D4-47B5-8B63-6FBE6A1BC91E
If you are working with MCMS objects, then you will need
to use the PAPI in update mode. Perhaps if you could share
more about how you plan to use it with MCMS, we can help
further.
To get the uploaded file, the form's enctype attribute
must be set to "multipart/form-data". Here's a
comprehensive article on this topic -
http://www.4guysfromrolla.com/webtech/091201-1.shtml.
regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
---
| Quote: | -----Original Message-----
I am making a form with several fields and a file upload
file for user to
upload a document. I want to ask any special things need
to handle while I
do it in MCMS ? such as how can I get the uploaded
file ? Any suggestions
or samples I can get ? Thank you very much
Tony
.
|
|
|
| Back to top |
|
 |
Tony Cheng
Guest
|
Posted:
Mon Jan 10, 2005 2:21 pm Post subject:
Re: submit a form with a file upload |
|
|
Thx, http://www.4guysfromrolla.com/webtech/091201-1.shtml. this site helps
me a lot and I have already solved the problem. Thank you very much
"Mei Ying [MVP]" <anonymous@discussions.microsoft.com> wrote in message
news:1ebb01c4f6e2$169a76c0$a601280a@phx.gbl...
| Quote: | Hi
If the form you are building does not interact with MCMS,
i.e. you aren't attempting to create/edit postings or
resource gallery items with it, then it's basically the
same as that for regular ASP.NET web forms. Just watch out
for the maximum file size limit set in the web.config
file. See here for details:
http://download.microsoft.com/download/4/2/5/4250f79a-c3a1-
4003-9272-2404e92bb76a/MCMS+2002+-+(complete)
+FAQ.htm#21529F34-A8D4-47B5-8B63-6FBE6A1BC91E
If you are working with MCMS objects, then you will need
to use the PAPI in update mode. Perhaps if you could share
more about how you plan to use it with MCMS, we can help
further.
To get the uploaded file, the form's enctype attribute
must be set to "multipart/form-data". Here's a
comprehensive article on this topic -
http://www.4guysfromrolla.com/webtech/091201-1.shtml.
regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
---
-----Original Message-----
I am making a form with several fields and a file upload
file for user to
upload a document. I want to ask any special things need
to handle while I
do it in MCMS ? such as how can I get the uploaded
file ? Any suggestions
or samples I can get ? Thank you very much
Tony
.
|
|
|
| Back to top |
|
 |
|
|
|
|