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

Notification

Icon
Error

Options
Go to last post Go to first unread
stevewood  
#1 Posted : Wednesday, February 20, 2008 9:31:53 AM(UTC)
stevewood

Rank: Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 21

The default value for the Action function is the current page:

iu.addParam("Action", ".");

What function do you use to allow server-side code to go on the same page AND keep that server-side code from firing when the page is first opened.

Eugene Kosmin  
#2 Posted : Wednesday, February 20, 2008 2:23: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)
Hello,

Image Uploader’s upload request contains some specific upload fields, such as FileCount, PackageIndex and so on. You can determine whether request come from IU by this fields or by actually upload file count.

Code:
<%@ Page Language="c#" %>

<script runat="server">
void Page_Load()
{
    if (Request.Files.Count > 0)
	{
        Request.SaveAs(Server.MapPath("Dump.txt"),true);
	}
}
</script>

<html>
	<head>
		<title>Aurigma Image Uploader</title>
		<script language="javascript" src="../iuembed.js"></script>
	</head>
	<body bgcolor="#c3daf9">

	<script language="javascript">
		var iu = new ImageUploaderWriter("ImageUploader", 800, 600);
		//
		iu.writeHtml();
	</script>
    </body>
</html>

But commonly Action property is not used with default value.

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.