This is a migrated thread and some comments may be shown as answers.

MinFileSize Property

5 Answers 121 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Muhammad Irfan
Top achievements
Rank 1
Muhammad Irfan asked on 14 Jun 2011, 09:34 AM
Hi,

I would appreciate if you can tell me if there is a property for minimum file size similar to MaxFileSize. My requirement is to prevent the user from uploading an empty (0KB) file. Most of our users use Internet Explorer and whenever they try to attach a file (empty/0KB), progress bar doesn't move at all and gets stuck in a limbo. It seems to be working fine in Firefox though.

In order to go around this problem, we have decided not to allow the user to upload empty files (0KB). Is there such a property for RadAsyncUpload that prevents the user from doing so?

My html looks something like this:

<telerik:RadAsyncUpload ID="uplCVAsync" runat="server" MaxFileInputsCount="1" MultipleFileSelection="Disabled"
EnableInlineProgress="true" AllowedFileExtensions='<%#AllowedExtensions%>' MaxFileSize="<%#MaxFileSize%>" OnClientProgressUpdating="checkUploadedFilesSize"
OnClientFileUploading="fileUploadStart" OnClientFileUploaded="fileUploadEnd"
OnClientFileUploadFailed="fileUploadEnd" OnClientValidationFailed="fileUploadValidationFailed">                                            </telerik:RadAsyncUpload>

If this property is not available, please advice other alternatives?

Irfan,

5 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 15 Jun 2011, 01:18 PM
Hi Muhammad Irfan,

This is a bug in the RadAsyncUpload Silverlight module which we have already fixed. The fix will be available with the Q2 release. Meanwhile you can disable the Silverlight module and use the IFrame and Flash ones. You can disable the Silverlight module via placing the following script before RadAsyncUpload declaration:

Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; };

Greetings,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Muhammad Irfan
Top achievements
Rank 1
answered on 16 Jun 2011, 09:35 AM
Hi Genady Sergee,

Please allow me to outline the problems I face with different modules (Flash, Silverlight, IFrame) that RadAsyncUpload supports.

  1. Flash module doesn't work in IE 7.0 (at least). It doesn't display file extensions when the browse a file dialog box appears. Though I have specified a few file extensions using AllowedFileExtensions property, but it shows (*.*)
  2. Upon clicking the Remove button in Flash module (in IE 7.0), Select button doesn't appear at all, hence prevents the user to select file again.
  3. Silverlight module doesn't stop user from attaching empty files (at least in IE)

I have already disabled Flash module due to problem 1 and 2 mentioned above. And now I have to disable Silverlight as well.

I am a bit concerned about the performance of the IFrame module in terms of how efficiently it can handle large file (more than 2MB) uploads. And does it have the capability to deal with large file uploads limitation in IIS?

Thanks,
Muhammad Irfan
0
Genady Sergeev
Telerik team
answered on 20 Jun 2011, 09:11 AM
Hi Muhammad Irfan,

We have fixed issue 2 (with Flash). Issue 3 is also already fixed. Both fixes would appear in the upcoming Q2 release. With respect to issue 1 - are you sure that IE7 is running the Flash module? I've just opened the following demo using IE7 + Flash and the extension filtering seems to run fine. In order to verify that flash is running, please right click on the uploader. A flash context menu should appear as in the attached screenshot.

All the best,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Muhammad Irfan
Top achievements
Rank 1
answered on 21 Jun 2011, 07:53 AM
Hi Genady Sergeev,

Thanks for your reply. Is our account entitled to get Q2 relese? Is this something we can get automatically or we will have to pay for that? I look forward to Q2 release. Please give us a shout as soon as it becomes available.

With regards to issue 1, yes, It is happening in IE7.0 when Flash is enabled. I asked my colleague, who is using IE7, to check this for me. We saw Flash context menu also, but file browser dialog box did not show any file extensions. Its just (*.*) that appears.

Can you please let me when this will be fixed?

Thanks,

Muhammad Irfan

0
Genady Sergeev
Telerik team
answered on 27 Jun 2011, 08:07 AM
Hello Muhammad Irfan,

Could you please specify which version are you currently using? We added support for file filtering to the Flash module in the Q1 release 2011. Please make sure that you use that version.

With respect to your other question, our record indicate that your license has expired, therefore a renewal is needed in order to update to the latest version.

Regards,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
AsyncUpload
Asked by
Muhammad Irfan
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Muhammad Irfan
Top achievements
Rank 1
Share this question
or