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

Notification

Icon
Error

Options
Go to last post Go to first unread
newvisionjeff  
#1 Posted : Tuesday, July 10, 2007 4:21:38 AM(UTC)
newvisionjeff

Rank: Advanced Member

Groups: Member
Joined: 4/19/2006(UTC)
Posts: 42

I really hate to bother you guys. KAPHOTOSERVICE does not seem to exist anymore. I have clients that upload hundreds of images per order for proof printing. Some customers have no issues. Some do. Can someone look at this code and let me know if anything seems strange off the bat? I would appreciate it. I am having so many problems and Vijainder (KAPHOTOSERVICE) fell off the face of the earth!!! I haven't gotten a response from him in 8 months!

I know this is not your problem but I would appreciate it if you could give me some pointers.

Jeff (CODE BELOW FOR UPLOAD SCRIPT CREATED BY VIJAINDER THAKUR AT KAPHOTOSERVICE in JUNE 2006)



Code:
<script type="text/javascript" src="iuembed.js"></script>

<script type="text/javascript">

//var iu = new ImageUploaderWriter("ImageUploader",750,500);



//...Any other params...

//...iu.addParam("Action", "Upload.aspx");

//...Any other event handler ...

iu.addEventListener("ViewChange", "ImageUploader_ViewChange");

//...

iu.writeHtml();
</script>



<script language="javascript" src="aurigma/iuembed.js"></script>
<table cellspacing="0" cellpadding="2" width="665" border="0" ID="Table1">
	<tbody>
		<tr>
			<td width="770">
				<script language="javascript">
					function beforeUploadHandler() {
							getImageUploader("ImageUploader").AddField("Album", "<%=strAlbumName%>");
							
							
					}

				  function ImageUploader_Progress(Status, Progress, ValueMax, Value, StatusText){
					var obj = document.sizeForm.shpopts.options;
					obj[obj.selectedIndex].value;
					if (Status=="COMPLETE"){
						 // When upload is finished, we are redirecting to the PictureGalery.asp page
						window.location='expldrprocess.asp?shpopt=' + obj[obj.selectedIndex].value + '&prodid=<%=intSelProd%>&an=<%=Server.UrlEncode(strAlbumName)%>';
						}
					} 
					var iu = new ImageUploaderWriter("ImageUploader", 665, 600);
					iu.addParam("LicenseKey", "<%=GetAurigmaLicenseKeys%>");
					iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe;*.tif;*.tiff");
					iu.addParam("FilesPerOnePackageCount", "1");
					iu.addParam("AutoRecoverMaxTriesCount", "5");
					iu.addParam("AutoRecoverTimeOut", "5000");
					iu.addParam("MaxFileCount", "0");

					<%
					If Not FileExists("aurigma\ImageUploader4.cab") Then
					%>
					iu.activeXControlEnabled = false
					<%
					Else
					%>
					iu.activeXControlEnabled = true
					iu.activeXControlCodeBase = "aurigma/ImageUploader4.cab";
					iu.activeXControlVersion = "4,5,4,0";
					<%
					End If
					%>
					iu.javaAppletEnabled = true;
					//For Java applet we specify only directory with JAR files
					iu.javaAppletCodeBase = "aurigma/";
					iu.javaAppletCached = true;
					iu.javaAppletVersion = "2.5.4.0";
					iu.addParam("Layout","ThreePanes");
					iu.addParam("FolderView", "Details");
					iu.addParam("UploadView", "Details");
					iu.addParam("UploadMode", "Separate");
					iu.addParam("AllowAutoRotate", "true");
					iu.addParam("ShowButtons", "True");
					//Append the form with total file size to the upload.
					iu.addParam("AdditionalFormName", "Form1");

					iu.addParam("ExtractIptc", "IptcCredit;IptcHeadline");
					

					<%
					' If the form wan't posted and the default width is 0
					' or the width for the upload size selected is 0
					' or the browser is not IE
					If (intSelHeight = "0" And Request.Form("height") = "") Or _
					  Request.Form("height") = "0" Or _  
						InStr(UCase(Request.ServerVariables("HTTP_USER_AGENT")), "MSIE") = 0 Then 
					%>
					iu.addParam("MaxFileSize", <%=MAXUPLOADSIZE%>)
					iu.addParam("UploadThumbnail1FitMode","Off");
					<%
					Else
					%>
					iu.addParam("UploadSourceFile","false");
					iu.addParam("UploadThumbnail1FitMode","fit");
					iu.addParam("UploadThumbnail1Width","<%=intSelWidth%>");
					iu.addParam("UploadThumbnail1Height","<%=intSelHeight%>");
					iu.addParam("UploadThumbnail1JpegQuality","100");
					<%
					End If
					%>
					iu.addParam("FileMask", "<%=strSupportedExts%>");
					// Files are uploaded one at a time
					iu.addParam("FilesPerOnePackageCount", "0");
					iu.addParam("MaxDescriptionTextLength", "4000");
					iu.addParam("ShowDebugWindow","true");
					iu.addParam("Action","aurigma/expldrsave.asp")
          			iu.addParam("ShowUploadCompleteMessage", "true");
					iu.addEventListener("Progress", "ImageUploader_Progress");
					iu.addEventListener("BeforeUpload", "beforeUploadHandler");
					iu.writeHtml();
				</script>
			</td>
		</tr>
	<%
	End If
	%>
	</tbody>
</table>
<!--#include file=".\custinc\bottom.inc"-->
<!--#include file=".\custinc\disconnect.asp"-->

Edited by user Tuesday, December 18, 2007 2:15:59 AM(UTC)  | Reason: Not specified

Jeff MacDougall
New Vision Color Lab
www.newvisioncolorlab.com
www.modebook.com
Alex Makhov  
#2 Posted : Tuesday, July 10, 2007 1:45:15 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Administration
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Could you describe your clients problems more detailed? Here is a description of common information we usually need to reproduce and fix the problem:
How to make successful bug report .

Edited by user Friday, February 22, 2008 10:42:43 PM(UTC)  | Reason: Not specified

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
newvisionjeff  
#3 Posted : Wednesday, July 11, 2007 2:58:22 AM(UTC)
newvisionjeff

Rank: Advanced Member

Groups: Member
Joined: 4/19/2006(UTC)
Posts: 42


* What is the version of Image Uploader?
4.5
* Which OS were you using, when the problem occurred?
Windows 2003 Server (Where script is running)
Windows XP SP2 where upload came from
* Which browser were you using?
IE7 and FireFox 2.0.0.4
* Was the problem reproducible? On which machines you were able to reproduce it?
Yes - I can not upload at all with FireFox from anywhere
* Does Image Uploader still work when you try our samples (both online and local)?
Yes

Also, explain what you were doing when you got the problem, preferably, as a sequence of steps you took: it will help us to reproduce the problem. Include screenshots if they contain any additional information.

I am a photo lab and my customers have so many different PC/MAC configurations that it really drives me crazy. When I ask my clients the same things that you need to know to debug it is difficult because general users have no clue what they are doing anyway.

This is about as much info that I can give you.

I appreciate all your help!!

Jeff
Jeff MacDougall
New Vision Color Lab
www.newvisioncolorlab.com
www.modebook.com
Alex Makhov  
#4 Posted : Thursday, July 12, 2007 1:03:14 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Administration
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Unfortunately, there was not enough information for us. Could you give us the link to your site and instructions about how to get to Image Uploader page (with teas account login and password). You could send it with a Private Message.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
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.