Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
MessageMaxFileSizeExceededText not being shown
Rank: Member
Groups: Member
Joined: 10/24/2005(UTC) Posts: 9
|
Hi, I want to restrict the maximum individual file size to be uploaded to 50MB. I have added these parameters, but could not get the desired functionality. Code:<param name="MaxFileSize" value="52428800">
<param name="MessageMaxFileSizeExceededText" value="Files larger than 50 Meg must be sent to the administrator and cannot be uploaded directly from the client.">
but my ImageUploader client could not show this message. The thumbnails view does not simply allow the user to select the file > 50MB with a message "File is too large". How do i get the above message displayed?? I also tried setting the property: FileIsTooLargeText, but it just displays on that thumbnail only(does not show large text). Please help as this is urgent. Regards, Ravi. Edited by user Sunday, December 23, 2007 4:43:19 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, I have just tested the following code and it works right as you wanted: Code:<param name="MaxFileSize" value="52428800">
<param name="MessageMaxFileSizeExceededText" value="Files larger than 50 Meg must be sent to the administrator and cannot be uploaded directly from the client.">
Edited by user Sunday, December 23, 2007 4:43:33 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Member
Joined: 10/24/2005(UTC) Posts: 9
|
I get a message under the thumbnail image that the file cannot be selected. I am not getting the message in a PopUp Alert ( I get this working when i set the TotalFileSize & MessageMaxTotalFileSizeExceededText properties-In that case i get a popup alert when i select the file with size more than 50MB). Please help.
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello,
Could you show the complete code of Image Uploader insertion block? We would check it. |
|
|
|
|
Rank: Member
Groups: Member
Joined: 10/24/2005(UTC) Posts: 9
|
here is the code that i use for ImageUpload control. I have a licenceKey param which i removed. I have attached the image which i get what i see. I see that "File is too Large" under the thumbnail. What i want is a javascript alert popup when i select the image for uploading with the message. Please help ASAP. Code:<object type="application/x-oleobject"
classid="clsid:A18962F6-E6ED-40B1-97C9-1FB36F38BFA8" width="100%" height="500"
CodeBase="jsp/ir/ImageUploader3.cab" id="ImageUploader" name="ImageUploader" VIEWASTEXT>
<param name="Action" value="ir.do?_event_=upload">
<param name="AdditionalFormName" value="aFormId">
<param name="FileMask" value="*.pdf;*.esx;*.dds;*.xls;*.doc;*.jpg;*.jpeg;*.gif;*.tif;*.tiff;*.bmp;*.exe">
<param name="SignatureFilter" value="All">
<!-- Max file size property(in Bytes) - 50MB-->
<param name="MaxFileSize" value="52428800">
<param name="MessageMaxFileSizeExceededText"
value="Files larger than 50 Meg must be sent to the admin. Clearly write the number and the name on the disc and a note: 50 Meg + file to be uploaded.">
<param name="ShowButtons" value="False">
<param name="Layout" value="TwoPanes">
<param name="CheckFilesBySelectAllButton" value="True">
<param name="BackgroundColor" value="white">
<param name="UploadThumbnail1FitMode" value="fit">
<param name="UploadThumbnail1Width" value="120">
<param name="UploadThumbnail1Height" value="120">
<param name="UploadThumbnail1JpegQuality" value="60">
<param name="ShowDebugWindow" value="True">
<param name="AdditionalFormName" value="Form1">
<param name="EnableRotate" value="False">
<param name="CodePage" value="1252">
<param name="ShowUploadCompleteMessage" value="False">
</object>
Edited by user Sunday, December 23, 2007 4:43:55 PM(UTC)
| Reason: Not specified ravikiran attached the following image(s):
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, I have tested your code and it works right as it has to work (watch screenshot). What behavior do you expect from your code? Alex Makhov attached the following image(s): |
|
|
|
|
Rank: Member
Groups: Member
Joined: 10/24/2005(UTC) Posts: 9
|
This looks strange to me. How did you get to that message?? There is no checkbox around that file to select it to upload. When i click upload button hilighting that, nothing happens. Can you explain how that popup came up for you?
Regards, Ravi.
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, I have changed the PaneLayout property value in your code to ThreePanes. Here is the code: Code:<param name="PaneLayout" value="TwoPanes">
Edited by user Tuesday, February 26, 2008 2:45:16 AM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Member
Joined: 10/24/2005(UTC) Posts: 9
|
I got you. Is there any way to obtain this functionality using the TwoPanes layout?
Regards, Ravi.
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello Ravi,
Is there any way to obtain this functionality using the TwoPanes layout?
No, the MaxFileSizeExceeded message could only be shown in OnePane and ThreePanes layout modes because we don’t let users to check "bad" files in TwoPane layout mode (by hiding checkboxes).
|
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
MessageMaxFileSizeExceededText not being shown
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.