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

Notification

Icon
Error

Options
Go to last post Go to first unread
philip  
#1 Posted : Wednesday, October 18, 2006 3:46:25 AM(UTC)
philip

Rank: Member

Groups: Member
Joined: 10/12/2006(UTC)
Posts: 5

We are trying to update to v4 Dual. The Java version of the uploader appears to have a bad bug. We use javascript like...
Code:
    imageUploader.setUploadSourceFile('false');
                                
    imageUploader.setUploadThumbnail1FitMode('Fit');
    imageUploader.setUploadThumbnail1Width('640');
    imageUploader.setUploadThumbnail1Height('640');
                                
    if (imageUploader.setUploadThumbnail1CopyExif)
      imageUploader.setUploadThumbnail1CopyExif('true');
...to upload a resized thumbnail and not upload the original. This used to work, but doesn't now. No file is received by the server (i.e. no file is POSTed). Is this an error on our part (there are no reported javascript errors in Windows Firefox) or is this a bug in the Java uploader?

Edited by user Tuesday, February 19, 2008 3:26:47 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Wednesday, October 18, 2006 12:28:23 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello Philip, What server-side script do you use (ASP, PHP or smth.)? What does the Java console write?
Sincerely yours, Alex Makhov UserPostedImage Follow Aurigma on Twitter!
philip  
#3 Posted : Wednesday, October 18, 2006 5:42:46 PM(UTC)
philip

Rank: Member

Groups: Member
Joined: 10/12/2006(UTC)
Posts: 5

We use ASP.NET and have uploaded successfully for months with the previous version of the Aurigma uploaders. In the Java console I see...
Code:
ImageUploader version: 2.0.50
Current document URL: http://localhost/uploadmedia.uplx?uploadid=21e73113d5af449c8d759f276879bd26&mode=uploader
Reading cookies
Cookies: ...(removed)
Reading referer
Referer: ...(removed)
Reading additional form content
Form element:<hidden><__LASTFOCUS><>
Form element:<hidden><__EVENTTARGET><>
Form element:<hidden><__EVENTARGUMENT><>
Form element:<hidden><__VIEWSTATE>...(removed)
Additional form processing done
Uploading to http://localhost/tools/uploader/uploader.aspx
Setting HTTP params: Host=localhost
Starting upload
Oct 19, 2006 1:39:14 AM org.apache.commons.httpclient.HttpMethodBase readResponse
INFO: Discarding unexpected response: HTTP/1.1 100 Continue
Status =[200]
Upload complete. Result page:


<html>
...(removed)
</html>

EndOf Result page
* No files are received by ASP.NET.

Edited by user Tuesday, December 18, 2007 9:04:19 PM(UTC)  | Reason: Not specified

nruffolo  
#4 Posted : Thursday, October 19, 2006 3:00:33 PM(UTC)
nruffolo

Rank: Member

Groups: Member
Joined: 10/19/2006(UTC)
Posts: 1

I am experiencing a similar problem with the same scenario (i.e. upload a resized thumbnail without sending the original). However, we are using ASP/aspSmartUpload as the back end instead of ASP.NET. We are evaluating Image Uploader for our application using ASP code from the documentation. Debug window displays the following error even though I have UploadSourceFile param set to "false": aspSmartUpload.Files error '800404b5' Invalid Files Name 'SourceFile_1' (Error 1205) /upload/photos/send_smartUpload.asp, line 24 In ActiveX version, the progress bar appears to upload photos and I am redirected to the "success" page, but no files are uploaded. In the Java version, it "retries" several times, then displays a general 'server error' message. Again no files are uploaded.
Alex Makhov  
#5 Posted : Thursday, October 19, 2006 6:12:16 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello, I have posted several helper scripts to check if Image Uploader configuration is correct. Please follow this link. Please try to use posted script to check what files are really uploaded.
Sincerely yours, Alex Makhov UserPostedImage Follow Aurigma on Twitter!
philip  
#6 Posted : Friday, October 20, 2006 7:30:35 AM(UTC)
philip

Rank: Member

Groups: Member
Joined: 10/12/2006(UTC)
Posts: 5

I did more testing. Here is what I think is going on... When I upload thumbnails using javascript after uploader initialization, no thumbnail is sent to the server with the Java uploader. The ActiveX uploader works with the same javascript with no problems.
Code:
  imageUploader.setUploadThumbnail1FitMode('Fit');
  imageUploader.setUploadThumbnail1Width('640');
  imageUploader.setUploadThumbnail1Height('640');
When I upload thumbnails and initialize the uploader using addParam, bot the Java and ActiveX uploaders work fine.
Code:
  iu.addParam("UploadThumbnail1FitMode", "Fit");
  iu.addParam("UploadThumbnail1Width", "120");
  iu.addParam("UploadThumbnail1Height", "120");
So, it appears that at least one of the .set* calls is not working in the Java version. Can you verify this? Note: there are no javascript runtime errors.

Edited by user Tuesday, February 19, 2008 3:26:33 PM(UTC)  | Reason: Not specified

Alex Makhov  
#7 Posted : Friday, October 20, 2006 2:19:23 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello Philip, I have answered you by PrivateMessage.
Sincerely yours, Alex Makhov UserPostedImage Follow Aurigma on Twitter!
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.