Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Issue with uploader Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guest
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 29 March 2005 at 12:48am | IP Logged Quote Guest

When using the MailBee.Uploader, I receive this error:

Cannot call BinaryRead after using Request.Form collection.

After doing some research, I found that this occurs when using the Request.Form, and instead you are supposed to use Upload.Form.

The problem with this is that while it uploads the attachment, it ignores all other objects in the form besides file types.

Is there a solution to this?
Back to Top View Guest's Profile Search for other posts by Guest
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 29 March 2005 at 8:10am | IP Logged Quote Alex

Since ASP's built-in Request object cannot parse forms with files (forms containing enctype="multipart/formdata"), you cannot use Request object for such forms. Use Uploader.FormElements collection instead.

For example, if you previously had:

Code:
strName = Request.Form("my_name")


now you should use:

Code:
strName = Uploader.FormElements("my_name")


Regards,
Alex

Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide