I am interested in purchasing the aurigma imageuploader. I have downloaded a trial version and have been able to use the control just fine. However, I have followed the documentation's guidance on uploading additional data but have not been able to get it the post of the additional fields to work. I have tried the entire form approach and individual fields neither seams to add anything to the post.
Details are below (including aspx and dump using Aurigma's ExtractFiles.aspx script. Any suggestions on why this is not working???
My page aspx page code is here:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm4.aspx.vb" Inherits="Project1.WebForm4" %>
<%@ Register assembly="Aurigma.ImageUploader" namespace="Aurigma.ImageUploader" tagprefix="cc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="Scripts/iuembed.js"></script>
<script type="text/javascript">
function beforeUploadHandler() {
// var folderlist = $find('textbox1');
//var selectedfolderitem = '';
//selectedfolderitem = folderlist.get_selectedItem();
//var selectedfolderid = '';
//selectedfolderid = selectedfolderitem.get_value();
getImageUploader('FileUploader').AddField('textbox1', 'test');
}
// try adding individual field
// var iu = new ImageUploaderWriter("FileUploader", 600, 500);
// iu.addEventListener("BeforeUpload", "beforeUploadHandler");
// iu.writeHtml();
// try adding entire form
var iu = new ImageUploaderWriter("FileUploader", 610, 500);
iu.addParam("Form1", "");
iu.writeHtml();
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<br />
<asp:CheckBox ID="chkShowClient" runat="server"
Text="Show Document(s) to client." Checked="True" />
<br />
<cc2:ImageUploader ID="FileUploader" runat="server" Action="ExtractFiles.aspx"
ActiveXControlVersion="6.5.19.0" AllowCmykImages="False"
AuthenticationRequestBasicText="[Name] requires authentication."
AuthenticationRequestNtlmText="[Name] requires authentication."
FileMask="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.htm;*.html;*.wav;*.txt;*.mp3;*.wpd;*.wps;*.rtf;*.ppt;*.pptx;*.pps;*.wma;*.wmv;*.mpg;*.mp4;*.swf;*.zip;*.zipx;*.odt;*.ods;*.odp"
JavaAppletVersion="6.5.19.0" LicenseKey="71060-4858C-00000-074D4-2FB13"
MaxFileSize="5000000" MaxTotalFileSize="20000000"
ProgressDialogSentText="Sent: [Current] of [Total]" Width="670px"
OnFileUploaded="FileUploaded" AllowRotate="False"
BackgroundColor="240, 240, 240" EditDescriptionText="Description..."
FileIsTooLargeText="Too large." FolderView="List" PreviewThumbnailSize="80"
ProgressDialogPreviewThumbnailSize="70" TreePaneWidth="180">
</cc2:ImageUploader>
</div>
</form>
</body>
</html>
My ExtractDump is as follows:
POST /ExtractFiles.aspx HTTP/1.1
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 3227
Content-Type: multipart/form-data; boundary=---------------------20976585454
Accept: text/html
Accept-Encoding: identity
Cookie: ASP.NET_SessionId=c5va1l54pcbpbxubsn3x1nhf
Host: localhost:50616
Referer: http://localhost:50616/WebForm4.aspx
User-Agent: Image Uploader
-----------------------20976585454
Content-Disposition: form-data; name="PackageIndex"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
0
-----------------------20976585454
Content-Disposition: form-data; name="PackageCount"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
-1
-----------------------20976585454
Content-Disposition: form-data; name="PackageGuid"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
{3F8E0BBE-6738-4460-BFD6-74004792B3D7}
-----------------------20976585454
Content-Disposition: form-data; name="Description_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
-----------------------20976585454
Content-Disposition: form-data; name="Width_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
0
-----------------------20976585454
Content-Disposition: form-data; name="Height_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
0
-----------------------20976585454
Content-Disposition: form-data; name="Angle_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
0
-----------------------20976585454
Content-Disposition: form-data; name="HorizontalResolution_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
0
-----------------------20976585454
Content-Disposition: form-data; name="VerticalResolution_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
0
-----------------------20976585454
Content-Disposition: form-data; name="SourceFileSize_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
106
-----------------------20976585454
Content-Disposition: form-data; name="SourceFileCreatedDateTime_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
2010:03:24 02:27:20
-----------------------20976585454
Content-Disposition: form-data; name="SourceFileLastModifiedDateTime_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
2010:10:04 18:46:24
-----------------------20976585454
Content-Disposition: form-data; name="SourceFileCreatedDateTimeLocal_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
2010:03:23 22:27:20
-----------------------20976585454
Content-Disposition: form-data; name="SourceFileLastModifiedDateTimeLocal_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
2010:10:04 14:46:24
-----------------------20976585454
Content-Disposition: form-data; name="FileName_1"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
lights.txt
-----------------------20976585454
Content-Disposition: form-data; name="SourceFile_1"; filename="lights.txt"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: binary
Wall 5572-44 45
Entry 6772-10-95 456
Island 6572-3-44 198
Dining 6072-6-95 354
Nook 6472-5-44 282
-----------------------20976585454
Content-Disposition: form-data; name="FileCount"
Content-Type: text/plain; charset=utf-8; Content-Transfer-Encoding: 8bit
1
-----------------------20976585454--
Edited by user Monday, October 11, 2010 12:01:25 PM(UTC)
| Reason: Not specified