HI, I use this aurigmaupload.asp
I also have edited some, in abcupload.asp and gallery.asp
only setting the gallerypath :
strGalleryPath = "../../../productitem_upload/"
FYI, abcupload.asp and gallery.asp, they came from ImageUploader 5.1 trial version
-- AurigmaUpload.asp --
<%@ Language=VBScript %>
<!--#include file="../config.asp"-->
<%
server.ScriptTimeout = 6000
Response.Buffer = False
Response.CacheControl = "No-store"
session.Timeout=180
SessionCheck
Set objFileSystem = Server.CreateObject("Scripting.FileSystemObject")
'This variable specifies relative path to the folder, where the gallery with uploaded files is located.
'Do not forget about the slash in the end of the folder name.
Dim strGalleryPath
strGalleryPath = "../../../productitem_upload/"
response.write Server.MapPath(strGalleryPath) & "<br>"
Dim objFolder, objFile
'Delete source files.
Set objFolder = objFileSystem.GetFolder(Server.MapPath(strGalleryPath))
For Each objFile In objFolder.Files
objFileSystem.DeleteFile objFile.Path, True
Next
'Delete thumbnails.
Set objFolder = objFileSystem.GetFolder(Server.MapPath(strGalleryPath) & "\Thumbnails")
For Each objFile In objFolder.Files
objFileSystem.DeleteFile objFile.Path, True
Next
%>
<html>
<head>
<title></title>
</head>
<link rel="stylesheet" type="text/css" href="Main.css">
<script type="text/javascript" src="../iuembed.js"></script>
<script type="text/javascript">
//<![CDATA[
function ImageUploader1_BeforeUpload() {
getImageUploader("ImageUploader1").setButtonStopText("Stop");
needToHideButtonStop = false;
}
function ImageUploader1_Progress(Status, Progress, ValueMax, Value, StatusText) {
//Stop button should be displayed only during the upload process. If the upload
//completed (either successfully or not), the button should be hidden.
needToHideButtonStop = (Status=="COMPLETE" || Status=="ERROR" || Status=="CANCEL");
}
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 600, 400);
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "../ImageUploader5.cab";
iu.activeXControlVersion = "5,1,10,0";
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletJarFileName = "ImageUploader5.jar";
iu.javaAppletCodeBase = "../";
iu.javaAppletCached = true;
iu.javaAppletVersion = "5.1.10.0";
iu.showNonemptyResponse = "off";
//Set and configure advanced details view.
iu.addParam("PaneLayout", "OnePane");
iu.addParam("UploadView", "AdvancedDetails");
iu.addParam("AdvancedDetailsPreviewThumbnailSize", "40");
//Configure License Keys
iu.addParam("LicenseKey", "71050-4338A-00000-09EC4-D2986;72050-4338A-00000-08333-86099");
//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");
//Configure upload settings.
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("AutoRecoverMaxTriesCount", "5");
iu.addParam("AutoRecoverTimeOut", "10000");
iu.addParam("MaxConnectionCount", "3");
//Set several URLs files should be uploaded to. In a real life most likely
//you will specify URLs to different servers, however in this demo the single
//server and page is used for brevity.
iu.addParam("Action", "<%=GetUploadUrl()%>?handlerId=1;<%=GetUploadUrl()%>?handlerId=2;<%=GetUploadUrl()%>?handlerId=3");
//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "<%=GetGalleryUrl()%>");
//Configure miscellaneous settings.
iu.addParam("ShowDebugWindow", "true");
iu.addParam("BackgroundColor", "#ffffcd");
iu.addParam("ShowContextMenu", "false");
//Concurrent upload feature and advanced details view are not supported in Java version yet.
//This way we need to get Java version working in standard mode (sequential upload with standard
//progress dialog).
if (iu.getControlType() == "ActiveX"){
iu.addParam("SilentMode", "true");
var needToHideButtonStop = false;
iu.addEventListener("BeforeUpload", "ImageUploader1_BeforeUpload");
iu.addEventListener("Progress", "ImageUploader1_Progress");
//Use timer to check whether to hide the Stop button. It allows to avoid the button flickering.
window.setInterval("if (needToHideButtonStop) {getImageUploader('ImageUploader1').setButtonStopText(''); needToHideButtonStop = false;}", 500);
}
//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();
//]]>
</script>
<body class="BodyMargin">
<form name="frm" method="post">
<%
If objFileSystem.FolderExists(Server.MapPath("../productitem_upload") & "\" & vManufactureName &"\") Then
%>
<table>
<tr>
<td align="right"><input type="button" class="InputButton" value="View Uploaded Product Photos" onClick="window.location='ProductPhotosEdit_12.asp';"> </td>
</tr>
</table>
<% end if %>
</form>
</body>
</html>
<%
Set objFileSystem = Nothing
CloseDB
%>
------------------------------------------------------------