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

Notification

Icon
Error

Options
Go to last post Go to first unread
Steve_Sensei  
#1 Posted : Friday, October 14, 2011 1:35:10 PM(UTC)
Steve_Sensei

Rank: Newbie

Groups: Member
Joined: 10/4/2011(UTC)
Posts: 8

I have ImageUploader working fine in InternetExpolorer, but it throws error messages in Firefox (Some server-side error occurred). I'm using this in a Classic ASP page with a test license

My coding is:

Code:
<script type="text/javascript">
		
		var uploader = $au.uploader({
			id: 'ImageUploader1',
			width: '750px',
			height: '500px',
			licenseKey: '76FF4-0045E-FF691-D8D1D-8D0BA-0B21FB',
			activeXControl: {
				codeBase: 'Scripts/ImageUploader7.cab'
			},
			javaControl: {
				codeBase: 'Scripts/ImageUploader7.jar'
			},
			converters: [
				
				{ mode: '*.*=Thumbnail', 
        				thumbnailFitMode: 'ActualSize',
        				thumbnailWidth: '500',
					thumbnailHeight: '500',
					thumbnailWatermark: 'ImageUrl=../graphics/uploaded-photo-watermark.gif;Width=180;Height=50;Opacity=100;Position=BottomLeft'}
			],
			uploadSettings: {
				actionUrl: '<%= strUploadComponent %>.asp'
			},
			restrictions: {
				fileMask: '*.jpeg;*.jpg;*.jpe',
				maxFileSize: 2 * 1024 * 1024 // 2 MB
			}
		});
		
		uploader.writeHtml();
		
	</script>
Dmitry.Obukhov  
#2 Posted : Sunday, October 16, 2011 9:48:50 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Steve,

You experience this problem because of loosing HTTP-only cookies. The fact is that Image Uploader does not send cookies in output requests in non-Internet Explorer browsers by default and, therefore, session and authentication tickets are lost during the upload. You should add cookies manually through addCookie() method.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Steve_Sensei  
#3 Posted : Tuesday, October 18, 2011 11:18:57 AM(UTC)
Steve_Sensei

Rank: Newbie

Groups: Member
Joined: 10/4/2011(UTC)
Posts: 8

Since posting this, I have upgraded to a paid licensed version of the Image Uploader and moved the files to their final destination folder. The problem reported above still exists, but using Fiddler and the Java console, I have traced the problem down to this line in your Persits ASP Upload code:

strFileName = GetSafeFileName(objSourceFile.FileName)

The error message is "object required: objSourceFile'

What I don't understand is that the Persits ASP Upload file I'm using (modified to store the file data in a database instead of an XML file as in the example) works in Explorer, using ActiveX, but not in Java.
Dmitry.Obukhov  
#4 Posted : Wednesday, October 19, 2011 2:53:02 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Steve,

Actually, Persits ASP Upload is a third-party software and not implemented by Aurigma. Unfortunately, we are not responsible for it. Anyway, could you please provide me with Java console dump, and information you got in Fiddler?
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Steve_Sensei  
#5 Posted : Wednesday, October 19, 2011 10:50:39 AM(UTC)
Steve_Sensei

Rank: Newbie

Groups: Member
Joined: 10/4/2011(UTC)
Posts: 8

The Java console dump using Firefox:

Java Plug-in 1.6.0_27
Using JRE version 1.6.0_27-b07 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Stephen Greenstein

Aurigma Image Uploader: version: 7.0.15.0
Aurigma Image Uploader: build date: 2010/12/17
Aurigma Image Uploader: current document URL: http://www.bangvip.com/a...ction=add&albumID=17
Aurigma Image Uploader: downloaded file: C:\DOCUME~1\STEPHE~1\LOCALS~1\Temp\IUJ5576381427802366009IUWatermark_0NormalDwnld.tmp, response code: 200
Aurigma Image Uploader: reading cookies...
Aurigma Image Uploader: read document cookies: __utma=90903433.1769147011.1316971207.1319038870.1319049354.29; __utmz=90903433.1316971207.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ASPSESSIONIDQSTBRDSS=DKKJMHHDPNGIEEDNONCACILI; __utmc=90903433; firstName=Administrative; recordID=3; lastName=Access; accessLevel=1; adminID=2; ASPSESSIONIDQSCTQQBD=BIPDIIHDPJKKMNGOEFFCEACA; __utmb=90903433.6.10.1319049354
Aurigma Image Uploader: chunk upload: off
Aurigma Image Uploader: uploading to http://www.bangvip.com/a...AspUpload.asp?albumID=17
Aurigma Image Uploader: using proxy: null
Aurigma Image Uploader: probing action URL with test request
Aurigma Image Uploader: request cookies: <__utma=90903433.1769147011.1316971207.1319038870.1319049354.29; __utmz=90903433.1316971207.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ASPSESSIONIDQSTBRDSS=DKKJMHHDPNGIEEDNONCACILI; __utmc=90903433; firstName=Administrative; recordID=3; lastName=Access; accessLevel=1; adminID=2; ASPSESSIONIDQSCTQQBD=BIPDIIHDPJKKMNGOEFFCEACA; __utmb=90903433.6.10.1319049354>
Aurigma Image Uploader: warning: test HEAD request failed with code 500, response page:

Aurigma Image Uploader: request cookies: <__utma=90903433.1769147011.1316971207.1319038870.1319049354.29; __utmz=90903433.1316971207.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ASPSESSIONIDQSTBRDSS=DKKJMHHDPNGIEEDNONCACILI; __utmc=90903433; firstName=Administrative; recordID=3; lastName=Access; accessLevel=1; adminID=2; ASPSESSIONIDQSCTQQBD=BIPDIIHDPJKKMNGOEFFCEACA; __utmb=90903433.6.10.1319049354>
Aurigma Image Uploader: error: exception com.aurigma.imageuploader.upload.UploadException thrown.
<<<<<<<<<<<<<<<<
com.aurigma.imageuploader.upload.UploadException
at com.aurigma.imageuploader.upload.w.a(Unknown Source)
at com.aurigma.imageuploader.upload.m.a(Unknown Source)
at com.aurigma.imageuploader.upload.n.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
>>>>>>>>>>>>>>>>

Aurigma Image Uploader: upload failed! Error code = 4, responsePage:
<font face="Arial" size=2>
<p>Microsoft VBScript runtime </font> <font face="Arial" size=2>error '800a01a8'</font>
<p>
<font face="Arial" size=2>Object required: 'objSourceFile'</font>
<p>
<font face="Arial" size=2>/admin/PersitsAspUpload.asp</font><font face="Arial" size=2>, line 31</font>

and from Internet Explorer with the Uploader set to "Java" type, using Fiddler:

<font face="Arial" size=2>
<p>Microsoft VBScript runtime </font> <font face="Arial" size=2>error '800a01a8'</font>
<p>
<font face="Arial" size=2>Object required: 'objSourceFile'</font>
<p>
<font face="Arial" size=2>/admin/PersitsAspUpload.asp</font><font face="Arial" size=2>, line 31</font>

Java dump using Internet Explorer and type set to "Java":

Aurigma Image Uploader: warning: Cannot obtain applet's id.
Aurigma Image Uploader: version: 7.0.15.0
Aurigma Image Uploader: build date: 2010/12/17
Aurigma Image Uploader: current document URL: http://www.bangvip.com/a...ction=add&albumID=17
Aurigma Image Uploader: downloaded file: C:\DOCUME~1\STEPHE~1\LOCALS~1\Temp\IUJ6920925442891343399IUWatermark_0NormalDwnld.tmp, response code: 200
Aurigma Image Uploader: reading cookies...
Aurigma Image Uploader: read document cookies: __utma=90903433.281663859.1318790524.1318959358.1319049789.4; __utmb=90903433.14.10.1319049789; __utmz=90903433.1318790524.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmc=90903433; ASPSESSIONIDQSCTQQBD=FIPDIIHDGKBFJBJCJOCOEPMP; firstname=Administrative; accessLevel=1; lastname=Access; adminID=2
Aurigma Image Uploader: chunk upload: off
Aurigma Image Uploader: uploading to http://www.bangvip.com/a...AspUpload.asp?albumID=17
Aurigma Image Uploader: using proxy: http://127.0.0.1:8888
Aurigma Image Uploader: probing action URL with test request
Aurigma Image Uploader: request cookies: <__utma=90903433.281663859.1318790524.1318959358.1319049789.4; __utmb=90903433.14.10.1319049789; __utmz=90903433.1318790524.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmc=90903433; ASPSESSIONIDQSCTQQBD=FIPDIIHDGKBFJBJCJOCOEPMP; firstname=Administrative; accessLevel=1; lastname=Access; adminID=2>
Aurigma Image Uploader: warning: test HEAD request failed with code 500, response page:

Aurigma Image Uploader: request cookies: <__utma=90903433.281663859.1318790524.1318959358.1319049789.4; __utmb=90903433.14.10.1319049789; __utmz=90903433.1318790524.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmc=90903433; ASPSESSIONIDQSCTQQBD=FIPDIIHDGKBFJBJCJOCOEPMP; firstname=Administrative; accessLevel=1; lastname=Access; adminID=2>
Aurigma Image Uploader: error: exception com.aurigma.imageuploader.upload.UploadException thrown.
<<<<<<<<<<<<<<<<
com.aurigma.imageuploader.upload.UploadException
at com.aurigma.imageuploader.upload.w.a(Unknown Source)
at com.aurigma.imageuploader.upload.m.a(Unknown Source)
at com.aurigma.imageuploader.upload.n.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
>>>>>>>>>>>>>>>>

Aurigma Image Uploader: upload failed! Error code = 4, responsePage:
<font face="Arial" size=2>
<p>Microsoft VBScript runtime </font> <font face="Arial" size=2>error '800a01a8'</font>
<p>
<font face="Arial" size=2>Object required: 'objSourceFile'</font>
<p>
<font face="Arial" size=2>/admin/PersitsAspUpload.asp</font><font face="Arial" size=2>, line 31</font>

Internet Explorer works perfectly when it is using ActiveX
Dmitry.Obukhov  
#6 Posted : Thursday, October 20, 2011 1:54:45 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Steve,

Could you please try another upload component for classic ASP, e.g. ABCUplod ASP and let me know about your results?
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Steve_Sensei  
#7 Posted : Thursday, October 20, 2011 7:16:20 AM(UTC)
Steve_Sensei

Rank: Newbie

Groups: Member
Joined: 10/4/2011(UTC)
Posts: 8

Sorry, I'm on a GoDaddy shared hosting server and Persits is the only upload component they offer.
Dmitry.Obukhov  
#8 Posted : Friday, October 21, 2011 2:23:23 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Please provide me with a link to your page with Image Uploader (with login/password).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Steve_Sensei  
#9 Posted : Friday, October 21, 2011 7:29:19 AM(UTC)
Steve_Sensei

Rank: Newbie

Groups: Member
Joined: 10/4/2011(UTC)
Posts: 8

http://www.bangvip.com/admin/
login using admin for username and password
Once logged in, click on Albums
Then, click on the Aurigma album
Dmitry.Obukhov  
#10 Posted : Sunday, October 23, 2011 9:21:13 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Steve,

Thanks for this link. I checked it, and reproduces the problem on Java-enabled browsers.
Could you please ask your hosting company to check whether session states for classic ASP is enabled. If so, please ask them to disable it. How to do it, please read in this topic.

If it do not help, please share you server-side code.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Steve_Sensei  
#11 Posted : Monday, October 24, 2011 6:59:55 AM(UTC)
Steve_Sensei

Rank: Newbie

Groups: Member
Joined: 10/4/2011(UTC)
Posts: 8

Session states are enabled, but on a shared hosting server I cannot turn them off. Also, I am use sessions in other parts of this web site.
Here is my Persits upload code with comments left in:

<%@LANGUAGE="VBSCRIPT"%>
<!--#INCLUDE FILE = "../Connections/bangvip.asp" -->
<!--#INCLUDE FILE = "../includes/Adovbs.inc" -->
<!--#INCLUDE FILE = "../includes/aspFunctionsLibrary.asp" -->
<%
Dim strGalleryPath
strGalleryPath = "../club-photos/"

Dim objFileSystem
Set objFileSystem = Server.CreateObject("Scripting.FileSystemObject")

Sub ProcessPersitsAspUpload
'Create Persits Upload object for upload processing.
Dim objUpload
Set objUpload = Server.CreateObject("Persits.Upload")
objUpload.CodePage = 65001 'UTF8
objUpload.Savevirtual("/club-photos/")

'Get total number of uploaded files (all files are uploaded in a single package).
Dim intFileCount, i
intFileCount = (RemoveLeadingCharacters(objUpload.Form("PackageFileCount").Value))
'Response.Write "packageFileCount = " & (objUpload.Form("PackageFileCount").Value) & "<br />"
'Response.Write "intFileCount = " & StripNonNumeric(intFileCount) & "<br />"
'Iterate through uploaded data and save the original file, thumbnail, and description.
For i = 0 To StripNonNumeric(intFileCount) - 1
'Get source file and save it to disk.
Dim objSourceFile
Set objSourceFile = objUpload.Files("File0_" & i)
Dim strFileName
'Response.Write "objSourceFile = " & objSourceFile
strFileName = GetSafeFileName(objSourceFile.FileName)
'objSourceFile.SaveVirtual("UploadedFiles\" & strFileName)

'Response.Write "strFileName in loop = " & strFileName & "<br />"
'Get first thumbnail (the single thumbnail in this code sample) and save it to disk.
'Dim objThumbnail1File
'Set objThumbnail1File = objUpload.Files("File1_" & i)
'objThumbnail1File.SaveVirtual("UploadedFiles\Thumbnails\" & strFileName & ".jpg")

'Add filename to database
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open MM_bangvip_STRING
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "photos", oConn, adOpenDynamic, adLockOptimistic, adCmdTable

rs.AddNew
rs("albumID") = CleanString(Request.Querystring("albumID"))
nameLength = len(strFileName)
fileName = right(strFileName,nameLength-2)
rs("photoName") = fileName
rs("featured") = 0
rs("datePosted") = Now()
rs.Update
oConn.Close
Set oConn = Nothing
Next
End Sub

'This method verifies whether file with such name already exists
'and if so, construct safe filename name (to avoid collision).
Function GetSafeFileName(strFileName)
'Response.Write "strFileName = " & strFileName & "<br />"
Dim strNewFileName
strNewFileName = strFileName
Dim j
j = 1
While (objFileSystem.FileExists(Server.MapPath(strGalleryPath & strNewFileName)))
strNewFileName = j & "_" & strFileName
j = j + 1
Wend
GetSafeFileName = strNewFileName
End Function

'WORKAROUND: Persits Upload component adds two #13#10 leading characters during form value parsing.
Function RemoveLeadingCharacters(Value)
If Len(Value) < 2 Then
RemoveLeadingCharacters = Value
Else
RemoveLeadingCharacters = Right(Value, Len(Value) - 2)
End If
End Function

ProcessPersitsAspUpload
%>
Dmitry.Obukhov  
#12 Posted : Tuesday, October 25, 2011 3:15:55 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Steve,

Thanks for the server-side code. We are checking it. Sorry for the inconvenience. I leave this post open.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Dmitry.Obukhov  
#13 Posted : Tuesday, October 25, 2011 7:46:23 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Steve,

We checked this problem in our testing lab. PersitsAsp Upload parses the Image Uploader’s POST requests incorrectly. Our developer reported about it to Persits Software:
Quote:
Hi,

I'm trying to use AspUppload control with the Aurigma Image Uploader component. When Aurigma Image Uploader send data to the server it sends additional "Content-Transfer-Encoding" header. Here is a part of the request. I've stripped some irrelevant parts.

POST http://localhost/asp_iu7/PersitsAspUpload.asp HTTP/1.1
Content-Length: 5283
Content-Type: multipart/form-data; boundary=xI7YUDZ21GIIN_QFywVTL7nHLyN849TPouxX
Host: localhost

--xI7YUDZ21GIIN_QFywVTL7nHLyN849TPouxX
Content-Disposition: form-data; name="PackageIndex"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

0
--xI7YUDZ21GIIN_QFywVTL7nHLyN849TPouxX
Content-Disposition: form-data; name="PackageCount"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

1
--xI7YUDZ21GIIN_QFywVTL7nHLyN849TPouxX
Content-Disposition: form-data; name="PackageGuid"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

{7C9C0490-EDC5-5C98-45B8-1B7CB4030CE7}
--xI7YUDZ21GIIN_QFywVTL7nHLyN849TPouxX
...


The problem is that AspUpload incorrectly parses such request. When I try to get value from request like objUpload.Form("PackageIndex").Value , this header appears in the value: "Content-Transfer-Encoding: 8bit\r\n0". Please help!
Thanks!

Here is the reply of Perits Software:
Quote:
AspUpload was not designed to work with non-standard formats, so there is nothing I can do at this time, try some other component.

Peter Persits
Persits Software, Inc.
http://www.persits.com

In this case, please try to contact with GoDaddy company, and ask them to install another ASP upload component.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Steve_Sensei  
#14 Posted : Saturday, October 29, 2011 10:45:26 AM(UTC)
Steve_Sensei

Rank: Newbie

Groups: Member
Joined: 10/4/2011(UTC)
Posts: 8

Many thanks for your help on this problem Dmitry.

Steve
Dmitry.Obukhov  
#15 Posted : Sunday, October 30, 2011 6:08:22 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Good day Steve,

If you have any additional questions please feel free to let me know.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Similar Topics
aurigma image uploader not working in firefox (Discussions – ActiveX/Java Uploader)
by eswaran 12/15/2010 5:49:17 AM(UTC)
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.