Bug Report T293523
Visible to All Users

ASPxFileManager - The FileDownloading event is not raised when the control is bound to cloud services

created 9 years ago

Please, check ASPxClientFileManagerCommandConsts.Download command when accessing cloud services (Dropbox, Amazon,…) . It's not firing…

Answers approved by DevExpress Support

created 9 years ago

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

Additional information:

We have fixed the issue. Now the FileDownloading event is raised for cloud providers too. However, the InputStream and OutputStream properties of the FileManagerFileDownloadingEventArgs event arguments are not in effect for cloud providers and are always set to null.
The documentation will be updated in our next minor release.

    created 9 years ago

    Hi,

    I've checked this scenario on our demo and it works fine (see the attached video). Make sure that you don't receive JavaScript errors on your side (see How to enable script debugging) and double check you code for spelling mistakes.
    If this doesn't help, send us the following information:
    - A screencast illustrating the issue on your side (for example, you can use the Jing Tool to capture it).
     - ASPxFileManager markup, which will allow us to reproduce the issue from scratch or a simple runnable project.

    Thanks,
    Artem

      Show previous comments (1)
      DevExpress Support Team 9 years ago

        Hello Mauro,

        I have reproduced the issue and forwarded it to our developers for detailed research. We will inform you once we have any updates.

          Now the FileDownloading event is fired, but when canceling the download as follows:
          e.Cancel = true;
          e.ErrorText = "Você não está autorizado a baixar DocLoading.doc";
          It  throws an exception instead of showing the message.
          Erro de Servidor no Aplicativo '/'.
          Você não está autorizado a baixar DocLoading.doc
          Descrição: Ocorreu uma exceção sem tratamento durante a execução da atual solicitação da Web. Examine o rastreamento de pilha para obter mais informações sobre o erro e onde foi originado no código.
          Detalhes da Exceção: DevExpress.Web.FileManagerCancelException:
          Você não está autorizado a baixar DocLoading.doc
          Erro de Origem:
          Exceção sem tratamento foi gerada durante a execução da atual solicitação da Web. As informações relacionadas à origem e ao local da exceção podem ser identificadas usando-se o rastreamento de pilha de exceção abaixo.
          Rastreamento de Pilha:
          [FileManagerCancelException:
          Você não está autorizado a baixar <b>"DocLoading.doc"</b>]
            DevExpress.Web.Internal.FileManagerEditHelper.PrepareFileDownload(String fileName, String id, GetFileStreamDelegate fileStreamGetter, FileManagerFile& file) +313
            DevExpress.Web.Internal.FileManagerEditHelper.GetCloudDownloadUrl(String fileName, String fileId) +84
            DevExpress.Web.Internal.FileManagerDownloadCommand.Execute() +231
            DevExpress.Web.ASPxFileManager.RaisePostBackEventCore(String arg) +360
            DevExpress.Web.ASPxFileManager.RaisePostBackEvent(String eventArgument) +9
            System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804
          Informações sobre a Versão: Microsoft .NET Framework Versão:4.0.30319; Versão do ASP.NET:4.0.30319.34249

          DevExpress Support Team 9 years ago

            Hello,

            To process your recent post more efficiently, I created a separate ticket on your behalf: T296860: ASPxFileManager - An exception occurs when FileDownloading e.Cancel = true. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

            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.