Rank: Member
Groups: Member
Joined: 2/1/2006(UTC) Posts: 40
|
I tested with Firefox 1.5 and IE 6.0. Firefox works fine. But IE 6.0 doesn't work. I checked the error, which indicating the error is come from this line Code:intPackageIndex = CInt(RemoveLeadingCharacters(objUpload.Form("PackageIndex").Value))
To debug it, I includes extra few lines: Code:Dim objDebug, objDebugFile
Set objDebug = server.CreateObject("Scripting.FileSystemObject")
Set objDebugFile = objDebug.CreateTextFile(server.MapPath("debug.txt"))
objDebugFile.WriteLine(objUpload.Form("PackageIndex").Value)
intPackageIndex = CInt(RemoveLeadingCharacters(objUpload.Form("PackageIndex").Value))
Set objDebugFile = Nothing
Set objDebug = Nothing
I open debug.txt after uploading. The value is: Code:Content-Transfer-Encoding: 8bit
0
If I upload using firefox, the content is: So the error is due to Cint unable to convert string to int, and also the function "RemoveLeadingCharacters" not able to strip out all the character. Edited by user Monday, February 18, 2008 6:51:08 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Member
Joined: 2/1/2006(UTC) Posts: 40
|
I am using Persists Uploader. I checked why my previous code doesn't work on IU 4, the reason is objUpload.Form("FileCount").Value giving me Code:Content-Transfer-Encoding: 8bit
2
Instead of 2. All other Examples: BasicDemo also demostrates the same behavior, which doesn't work with IE, but firefox (java) Edited by user Wednesday, December 19, 2007 3:46:03 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Member
Joined: 2/1/2006(UTC) Posts: 40
|
Code:objUpload.Form("Height_" & i).Value
objUpload.Form("Width_" & i).Value
objUpload.Form("Description_" & i).Value
All the Form elements contain Code:Content-Transfer-Encoding: 8bit
The sourcefile name is ok because it is not post element. Code:objUpload.Files("SourceFile_" & i).FileName
Edited by user Wednesday, December 19, 2007 3:46:29 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.