Ticket Q237752
Visible to All Users

ASPxUploadControl ClientSideEvents FileUploadStart get file size before upload begins

created 15 years ago

Hi,
Is there a client side method for getting the size of the ASPxUploadControl selected file before upload begins (i.e. in FileUploadStart???). Something like
          function Uploader_OnUploadStart()
          {
            var vntFileSise = uploader.FileSize();
          }
Thanks,
Sean.

Show previous comments (1)

    Hi Plato,
    My system seems to hang when a large file is selected for upload and the MaxFileSize validation setting does not seem to catch the fatc that the file is over the size limit.
    Is there any way to check the file size before the system hangs?
    Thanks,
    Sean

    DevExpress Support Team 15 years ago

      Hello Sean,
      I assume that your issue might be similar to the ASPxUploadControl - Access Denied on UploadingProgressChanged report. Please take a look at that discussion.
      > Is there any way to check the file size before the system hangs?
      Actually you can't get the file size before you upload it to the server because of file system security. But I've found an article which should help you: Check file size before upload.
      Please also upgrade your current version of DX controls to the latest one. I think that possible bugs were fixed, and your problem should already have been eliminated.
      Thanks,
      Vest

        Thanks Vest.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.