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

Notification

Icon
Error

Options
Go to last post Go to first unread
asafs  
#1 Posted : Tuesday, November 20, 2007 9:06:29 PM(UTC)
asafs

Rank: Member

Groups: Member
Joined: 3/19/2007(UTC)
Posts: 5

Hi All,

I am using ImageUploader4.5 activeX.

I am looking for a way to send the images by http but the additional field from this session by https (credit card info).

Does any one have any idea how to implement it?

Regards,

Assaf

Eugene Kosmin  
#2 Posted : Monday, November 26, 2007 5:27:05 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

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

Was thanked: 27 time(s) in 27 post(s)
Hello Assaf,

Sorry for the long delay. You can try two-step upload, something like this:
Code:
<script language="javascript">

var _fieldsUpload = true;

function ImageUploader_Progress(Status, Progress, ValueMax, Value, StatusText)
{
	if (Status == "COMPLETE")
	{
		if (_fieldsUpload)
		{
			_fieldsUpload = false;
			getImageUploader("ImageUploader").setAction("https://host.com/SecureUpload.aspx");
			getImageUploader("ImageUploader").setUncheckUploadedFiles(true);
			getImageUploader("ImageUploader").setUploadSourceFile(true);
			getImageUploader("ImageUploader").setMessageUploadCompleteText("Upload complete.");
			getImageUploader("ImageUploader").Send();
		}
		else
		{
			_fieldsUpload = true;
			getImageUploader("ImageUploader").setAction("http://host.com/Upload.aspx");
			getImageUploader("ImageUploader").setUncheckUploadedFiles(false);
			getImageUploader("ImageUploader").setUploadSourceFile(false);
			getImageUploader("ImageUploader").setMessageUploadCompleteText("");
		}
	}	
}

var iu = new ImageUploaderWriter("ImageUploader", 800, 600);

iu.addEventListener("Progress", "ImageUploader_Progress");

iu.addParam("Action", "https://host.com/SecureUpload.aspx");
iu.addParam("UncheckUploadedFiles", "false");
iu.addParam("UploadSourceFile", "false");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("MessageUploadCompleteText", "");

iu.writeHtml();

</script>


Edited by user Monday, February 25, 2008 4:11:25 PM(UTC)  | Reason: Not specified

Best regards,
Eugene Kosmin.
Aurigma Development Team
asafs  
#3 Posted : Tuesday, November 27, 2007 1:25:29 AM(UTC)
asafs

Rank: Member

Groups: Member
Joined: 3/19/2007(UTC)
Posts: 5

thanks,

but it will not work for me because I am uploading in my application only resized copies and not the source file.:unsure:
Eugene Kosmin  
#4 Posted : Tuesday, November 27, 2007 2:32:07 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

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

Was thanked: 27 time(s) in 27 post(s)
Try to make some changes:
Code:
<script language="javascript">

var _fieldsUpload = true;


function ImageUploader_Progress(Status, Progress, ValueMax, Value, StatusText)
{
	if (Status == "COMPLETE")
	{
		if (_fieldsUpload)
		{
			_fieldsUpload = false;
			getImageUploader("ImageUploader").setAction("http://host.com/Upload.aspx");
			getImageUploader("ImageUploader").setUncheckUploadedFiles(true);
			getImageUploader("ImageUploader").setUploadThumbnail1FitMode("Fit");
			getImageUploader("ImageUploader").setMessageUploadCompleteText("Upload complete.");
			getImageUploader("ImageUploader").Send();
		}
		else
		{
			_fieldsUpload = true;
			getImageUploader("ImageUploader").setAction("https://host.com/SecureUpload.aspx");
			getImageUploader("ImageUploader").setUncheckUploadedFiles(false);
			getImageUploader("ImageUploader").setUploadThumbnail1FitMode("Off");
			getImageUploader("ImageUploader").setMessageUploadCompleteText("");
		}
	}	
}

var iu = new ImageUploaderWriter("ImageUploader", 800, 600);

iu.addEventListener("Progress", "ImageUploader_Progress");

iu.javaAppletCodeBase = "../";

iu.addParam("Action", "https://host.com/SecureUpload.aspx");
iu.addParam("UncheckUploadedFiles", "false");
iu.addParam("UploadSourceFile", "false");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("MessageUploadCompleteText", "");
iu.addParam("UploadThumbnail1FitMode", "Off");
iu.addParam("UploadThumbnail1Width", "320");
iu.addParam("UploadThumbnail1Height", "320");
iu.addParam("UploadThumbnail1JpegQuality", "100");

iu.writeHtml();

</script>

Edited by user Monday, February 25, 2008 4:11:58 PM(UTC)  | Reason: Not specified

Best regards,
Eugene Kosmin.
Aurigma Development Team
asafs  
#5 Posted : Wednesday, November 28, 2007 10:29:06 PM(UTC)
asafs

Rank: Member

Groups: Member
Joined: 3/19/2007(UTC)
Posts: 5

thanks it worked for me.
for all of you that using this method please remember to remove the fields by useing "RemoveField" before uploading the images in http channel.
Eugene Kosmin  
#6 Posted : Thursday, November 29, 2007 12:10:04 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

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

Was thanked: 27 time(s) in 27 post(s)
You are welcome
Best regards,
Eugene Kosmin.
Aurigma Development Team
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.