submit a form with a file upload
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
submit a form with a file upload

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Tony Cheng
Guest





Posted: Mon Jan 10, 2005 12:32 pm    Post subject: submit a form with a file upload Reply with quote

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 Reply with 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
---

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 Reply with quote

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
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB