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

Notification

Icon
Error

Options
Go to last post Go to first unread
williamw  
#1 Posted : Thursday, June 12, 2008 2:52:41 PM(UTC)
williamw

Rank: Newbie

Groups: Member
Joined: 6/12/2008(UTC)
Posts: 3


Hi everyone,

I am a new user for this great ImageUploader, and I am an ASP developer.

I have installed trial version of ImageUploader 5.1 Dual, and when I tried to upload images, it was working great but when I tried to upload images secondly, It deleted my previous uploaded images.

I was expecting when I uploaded images for second time, the images were all added to the folder gallery.

Anyone experiencing the same issue ?
Is there anything to be done or anything to be changed in the code ?


Please help me, thanks in advance.


William.
Eugene Kosmin  
#2 Posted : Sunday, June 15, 2008 3:51:55 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hi,

Could you post your server-side code here?
Best regards,
Eugene Kosmin
The Aurigma Development Team
williamw  
#3 Posted : Sunday, June 15, 2008 4:19:08 PM(UTC)
williamw

Rank: Newbie

Groups: Member
Joined: 6/12/2008(UTC)
Posts: 3


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';">&nbsp;&nbsp;&nbsp;</td>
</tr>
</table>
<% end if %>

</form>
</body>
</html>
<%
Set objFileSystem = Nothing
CloseDB
%>

------------------------------------------------------------
Eugene Kosmin  
#4 Posted : Sunday, June 15, 2008 5:24:38 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
The purpose of Image Uploader SDK samples is demonstration only. They are not suitable for real life usage. Upload scripts from our samples clear previously uploaded data before processing new one. This is normal behavior.

You can try to remove this code from your AurigmaUpload.asp:

Code:
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
Best regards,
Eugene Kosmin
The Aurigma Development Team
williamw  
#5 Posted : Sunday, June 15, 2008 6:13:02 PM(UTC)
williamw

Rank: Newbie

Groups: Member
Joined: 6/12/2008(UTC)
Posts: 3


Thanks Eugene for your help,

Eugene, are you user of this ImageUploader ?
Do you familiar with web technolgy, If you dont mind, I have question to ask about session management relate with this component.

I have tried other component to upload multiple photos, while uploading photos the component gave me warning message, it said : connection is timed out.

I notice that Imageuploader and other component that I used are based on java application.

My concern is, since both of them are based on java applet. will this issue will occur again, if I use Imageuploader.

Any suggestions, answer would be helpful, b/c I'm planning to use the component to upload large amout of photos.

Thanks again eugene.


Best regards,
William.



Eugene Kosmin  
#6 Posted : Wednesday, June 18, 2008 4:56:48 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
If you are experiencing the same issue with different components from different vendors – most likely there is an issue on your server side.

Maybe you should check your server configuration once again or something like that.
Best regards,
Eugene Kosmin
The Aurigma Development Team
Dmitry  
#7 Posted : Thursday, June 19, 2008 7:46:13 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

If you use sessions in your web application the problem can be caused by HTTP-only cookies. For more information read PRB: Image Uploader for Java looses HTTP-only cookies post.
Sincerely yours,
Dmitry Sevostyanov

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.