Rank: Member
Groups: Member
Joined: 8/23/2007(UTC) Posts: 4
|
I am running Image Uploader 3.5 and want to upload just a thumbnail/resized image and use the original filename. I have sample code that breaks when the "UploadSourceFile" VALUE="0" Code:For I = 1 To intFileCount
''Get source image and save it to disk
SourceFile = Request.Files("SourceFile_" & I)
Dim strFileName As String = Path.GetFileName(SourceFile.FileName)
Thank you. Edited by user Monday, December 17, 2007 12:24:56 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 7/26/2006(UTC) Posts: 203
|
|
Best regards, George Ulyanov
|
|
|
|
Rank: Member
Groups: Member
Joined: 8/23/2007(UTC) Posts: 4
|
If I set "UploadSourceFile" property to "true" doesn't that defeat the purpose of limiting the upload to only the small thumbnail to save processing time? Wouldn't that upload potentially large image files?
|
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 9/19/2006(UTC) Posts: 496
Was thanked: 33 time(s) in 33 post(s)
|
Hello Charlie, Try to use this: Code:…
SourceFile = Request.Files("Thumbnail1_" & I)
…
Edited by user Monday, February 25, 2008 4:19:52 PM(UTC)
| Reason: Not specified |
Best regards, Eugene Kosmin The Aurigma Development Team
|
|
|
|
Rank: Member
Groups: Member
Joined: 8/23/2007(UTC) Posts: 4
|
Eugene, Thank you for the suggestion, but I need the original file name, the code you provided would create a name of "Thumbnail1_". Unless I am missing something? Thank you, Edited by user Monday, February 25, 2008 4:20:13 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Member
Joined: 10/4/2007(UTC) Posts: 6
|
Hi, I had a similar problem but I found the filename here in the FileName parameter, so my code is something like this: Code:my $filecount = param("FileCount");
for (my $i = 1; $i <= $filecount; $i++){
my $filename = param("FileName_" . $i);
}
I hope that helps. Gav Edited by user Monday, February 11, 2008 5:26:52 PM(UTC)
| Reason: Not specified
|
|
|
|
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.