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 |