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.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 9/19/2006(UTC) Posts: 505
Was thanked: 41 time(s) in 41 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 The Aurigma Development Team
|
|
|
|
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.