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

Notification

Icon
Error

Options
Go to last post Go to first unread
ravikiran  
#1 Posted : Wednesday, November 30, 2005 4:37:20 AM(UTC)
ravikiran

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

Alex Makhov  
#2 Posted : Wednesday, November 30, 2005 1:08:18 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
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

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
ravikiran  
#3 Posted : Thursday, December 01, 2005 1:11:03 AM(UTC)
ravikiran

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.
Alex Makhov  
#4 Posted : Thursday, December 01, 2005 11:59:01 AM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

Could you show the complete code of Image Uploader insertion block? We would check it.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
ravikiran  
#5 Posted : Thursday, December 01, 2005 10:48:07 PM(UTC)
ravikiran

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):
maxsize.JPG
Alex Makhov  
#6 Posted : Sunday, December 11, 2005 6:53:23 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
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):
Scr3.JPG
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
ravikiran  
#7 Posted : Sunday, December 11, 2005 10:12:34 PM(UTC)
ravikiran

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.
Alex Makhov  
#8 Posted : Monday, December 12, 2005 12:36:05 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
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

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
ravikiran  
#9 Posted : Monday, December 12, 2005 10:31:43 PM(UTC)
ravikiran

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.
Alex Makhov  
#10 Posted : Tuesday, December 13, 2005 11:53:24 AM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
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).
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.