Rank: Newbie
Groups: Member
Joined: 4/18/2009(UTC) Posts: 6
Was thanked: 1 time(s) in 1 post(s)
|
I've been trying to troubleshoot this all night and can't figure it out. I've read all the post on here about this topic but still haven't found a solution.
I'm using APS.net c#. I have an mobile website build using the jquerymobile. I have a button to open up Aurigma Up and I pass all the values in and including the cookie like so &cookies=ASPNET_SessionId%3D<%= Session.SessionID.ToString() %>.
I can get the Aurigma Up to open and I select just one picture. I click Start Upload and then it processes the image. Then I get this error: "Upload Failure" "Redirect is not supported with this website (HTTP code 3xx received).".
I've trying changing the redirect url to different pages such as with ssl, without ssl, within a authentication area, outside the auth area, etc. But no matter what I've tried I get the same results.
On my upload page within the Page_Load here is the basic code I'm using. I have a method that will process the stream and save the image.
if (Request.HttpMethod == "POST" && Request["PackageGuid"] != null) {
int fileCount = Int32.Parse(Request.Form["PackageFileCount"]);
for (int i = 1; i <= fileCount; i++) { HttpPostedFile file = Request.Files[string.Format("File0_{0}", i)]; if (file != null) { int intFileSize = file.ContentLength; if (intFileSize > 0) {
Stream stream = file.InputStream;
SaveImage(stream, intFileSize);
} } }
}
Please help. I'm out of ideas.
Also, I just updated to Aurigma Up 1.6 tonight trying to see if that would help.
|
|
|
|
Rank: Advanced Member
Groups: Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello, If it is possible, could you please provide me with a direct link to your page with Aurigma Up (login/password if any) so that I will be able to test it myself? If you do not want to post login information on the public forum, please submit new support ticket. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 4/18/2009(UTC) Posts: 6
Was thanked: 1 time(s) in 1 post(s)
|
I'm doing some more troubleshooting right now. I'll be sure to post an update and/or ask for your assistance. Thanks!
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 4/18/2009(UTC) Posts: 6
Was thanked: 1 time(s) in 1 post(s)
|
After more testing, I found that if I tried using an page to process the upload within an admin access area then it would fail. I moved the upload process to outside of the admin folder and it worked.
Also, FYI, somehow I came across a bad example of code, but make sure to use code such as int fileCount = int.Parse(Request["PackageFileCount"]);. I used Request.Forms["PackageFileCount"] and this didn't work.
Hope this will help anyone else trying to troubleshoot.
|
1 user thanked bianchi007 for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.