Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
More conditions to determine if source file should be uploaded?
Rank: Member
Groups: Member
Joined: 8/28/2007(UTC) Posts: 3
|
Hi there,
We are trying to deploy the Image Uploader with leaving our users the ability to upload video files as well via the appropriate filemask. Is there any way for the image uploader to achieve the logic below to determine whether or not the source file should be sent?
IF file is image - IF dimensions smaller than WxH, send source file - ELSE send thumbnail copy only
IF file is NOT image - send source file
I've been playing with the UploadSourceFile parameter. However, if I set it to false and the file selected is NOT an image, then no thumbnail can be generated and no file is sent at all!! That is not what I want. Is there way to send the source file if no thumbnail can be generated?
Please, let me know if there is a solution for this.
Thanks, Tim.
|
|
|
|
Rank: Advanced Member
Groups: Joined: 8/3/2003(UTC) Posts: 998
|
|
|
|
|
|
Rank: Member
Groups: Member
Joined: 8/28/2007(UTC) Posts: 3
|
Thanks Alex, Since UploadThumbnail1CompressOversizedOnly if for ActiveX version only, I will ask one of my colleague from QA to test it later. In the meanwhile, I have tested setting UploadThumbnail1FallbackMode to SourceFile (java version, firefox 2.0.0.6). It is not working for me when I select a video file. The settings I have are: Code:
iu.addParam("UploadSourceFile", "false");
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "1024");
iu.addParam("UploadThumbnail1Height", "768");
iu.addParam("UploadThumbnail1ResizeQuality", "High");
iu.addParam("UploadThumbnail1JpegQuality", "90");
iu.addParam("UploadThumbnail1CompressOversizedOnly", "true");
iu.addParam("UploadThumbnail1FallbackMode", "SourceFile");
When selecting a video file, logging the $_POST and $_FILES arrays gives me: Code:
Wed Sep 12 13:55:46 2007,446 [25353] DEBUG root - post: Array
(
[FileCount] => 1
[PackageIndex] => 0
[PackageCount] => 1
[PackageGuid] => {C6C159C9-EC70-B8E1-ED45-2D1E6C21A9D0}
[Description_1] =>
[Width_1] => 0
[Height_1] => 0
[Angle_1] => 0
[HorizontalResolution_1] => -1
[VerticalResolution_1] => -1
[SourceFileSize_1] => 1212416
[SourceFileCreatedDateTime_1] => 2006:11:30 17:37:30
[SourceFileLastModifiedDateTime_1] => 2006:11:30 17:37:30
[SourceFileCreatedDateTimeLocal_1] => 2006:12:01 01:37:30
[SourceFileLastModifiedDateTimeLocal_1] => 2006:12:01 01:37:30
[FileName_1] => Mp4_Video_60sec.mpg
)
Wed Sep 12 13:55:46 2007,446 [25353] DEBUG root - files: Array
(
)
As you can see, no file is being sent at all. It looks like the parameter UploadSourceFile has priority over UploadThumbnail1FallbackMode, even if no thumbnail can be generated. Is there any way to change this priority? My system is as follow: gentoo linux / kernel 2.6.16 firefox 2.0.0.6 sun jvm 1.4.2-03 latest java image uploader 4.5 Thanks, Tim. Edited by user Tuesday, February 12, 2008 12:56:23 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Quote:timothee (9/11/2007) Thanks Alex, Since UploadThumbnail1CompressOversizedOnly if for ActiveX version only, I will ask one of my colleague from QA to test it later.
Just FYI, Image Uploader build 4.5.50 should support this property both in ActiveX and Java versions. So I recommend to re-download it.
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
More conditions to determine if source file should be uploaded?
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.