Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Powderworks  
#1 Posted : Monday, January 2, 2012 6:36:18 PM(UTC)
Powderworks

Rank: Newbie

Groups: Member
Joined: 1/2/2012(UTC)
Posts: 6

Thanks: 1 times
I inserted the code into page upload
int fileCount = Int32.Parse(Request.Form["PackageFileCount"]);

for ( int i = 0; i < fileCount; i++ )

{

string path = System.IO.Path.Combine(Server.MapPath("../Datfiles/"), Request.Form["SourceName_" + i]);
Request.Files["File0_" + i].SaveAs(path);

}

Getting error message
Value cannot be Null
int fileCount = Int32.Parse(Request.Form["PackageFileCount"]);
Dmitry.Obukhov  
#2 Posted : Tuesday, January 3, 2012 11:17:19 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Bob,

Please add this if-statement to your server-side code:
Code:

if (Request.HttpMethod == "POST" && Request["PackageGuid"] != null){
//… handling uploaded files …
}
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
thanks 1 user thanked Dmitry.Obukhov for this useful post.
Powderworks on 1/4/2012(UTC)
Powderworks  
#3 Posted : Thursday, January 5, 2012 6:17:22 PM(UTC)
Powderworks

Rank: Newbie

Groups: Member
Joined: 1/2/2012(UTC)
Posts: 6

Thanks: 1 times
Dmitry.Obukhov wrote:
Hello Bob,

Please add this if-statement to your server-side code:
Code:

if (Request.HttpMethod == "POST" && Request["PackageGuid"] != null){
//… handling uploaded files …
}



Thanks
That worked
Dmitry.Obukhov  
#4 Posted : Thursday, January 5, 2012 8:52:44 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Thank you for your comment. If you have any additional questions, please feel free to post them here.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Similar Topics
.Net Error Message Child Nodes not allowed (Aurigma Up (iOS/Android))
by Powderworks 2/7/2012 8:57:11 PM(UTC)
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.