Rank: Member
Groups: Member
Joined: 1/17/2005(UTC) Posts: 32
|
Hi, I had uploading problems for a while now. I thought it was Dundas so I moved from asp to ASP.NET and use native upload support. However I still get the same problem on a certain number of customers who try upload their images to us. Basically they upload and it gets to 100% and nothing gets saved. Here are my Image Uplaoder Settings: Code:<script language="javascript">
var iu = new ImageUploaderWriter("ImageUploader", 720, 500);
iu.activeXControlEnabled = true;
iu.javaAppletEnabled = true;
//For ActiveX control we specify full path for CAB file
iu.activeXControlCodeBase = "./components/ImageUploader4.cab";
iu.activeXControlVersion = "4,0,33,0";
//For Java applet we specify only directory with JAR files
iu.javaAppletCodeBase = "./components/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.0.35.0";
iu.addParam("Layout", 2);
iu.addParam("FolderView", 0);
iu.addParam("UploadView", 0);
iu.addParam("UploadThumbnail1FitMode", 0);
iu.addParam("BackgroundColor", "LightGrey");
iu.addParam("PaneBackgroundColor", "White");
iu.addParam("ShowFileNames", "True");
iu.addParam("ShowDescriptions", "False");
iu.addParam("ShowButtons", "False");
iu.addParam("ShowStatusPane", "True");
iu.addParam("ShowDebugWindow", "False");
iu.addParam("EnableRotate", "False");
iu.addParam("RememberLastVisitedFolder", "true");
iu.addParam("EnableFileViewer", "true");
iu.addParam("PreviewThumbnailSize", "80");
iu.addParam("TimeOut", "0");
iu.addParam("LicenseKey", "**********;***********");
iu.addParam("Action", "ProcessUpload.aspx");
iu.addParam("RedirectUrl", "promotion.asp");
iu.addParam("FileMask", "*.jpg;*.jpeg;*.tif;*.tiff");
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("AutoRecoverMaxTriesCount", "5");
iu.addParam("AutoRecoverTimeOut", "5000");
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("ViewChange", "ImageUploader_ViewChange");
iu.addEventListener("Progress", "ImageUploader_Progress");
iu.addParam("AdditionalFormName", "UploadInfo");
iu.writeHtml();
And here is my processupload.aspx Code: Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim postedFile As HttpPostedFile
Dim savePath As String
Try
Response.Clear()
If Request("UserFolder") Is Nothing OrElse Request("UserFolder") = "" Then
Response.Write("Error: User Folder not specified.")
ElseIf Request.Files.Count <= 0 Then
Response.Write("Error: No files were uploaded.")
Else
savePath = Request("UserFolder")
If IO.Directory.Exists(savePath) = False Then
IO.Directory.CreateDirectory(savePath)
End If
For i As Integer = 0 To Request.Files.Count - 1
postedFile = Request.Files.Get(i)
postedFile.SaveAs(IO.Path.Combine(savePath, IO.Path.GetFileName(postedFile.FileName)))
Next
End If
Response.Write("0")
Catch ex As Exception
Response.Write("Error: " & ex.Message)
Finally
Response.End()
End Try
End Sub
As a note this only happens about 10% of the time and the people it happens on all seem to use windows xp sp2. 99% of our users use windowsxp sp2 so this cant be the problem. Also sometimes I go through troubleshooting step I tell them to test one image, and this one image takes them 2 second to send about 1MB which isn't right and not showing up in the end. Is there a way I can make a page for debugging uploader and I can send all these people to. When they upload the debug information will be emailed to me? Edited by user Tuesday, February 19, 2008 1:50:51 PM(UTC)
| Reason: Not specified
|