Please, check ASPxClientFileManagerCommandConsts.Download command when accessing cloud services (Dropbox, Amazon,…) . It's not firing…
ASPxFileManager - The FileDownloading event is not raised when the control is bound to cloud services
Answers approved by DevExpress Support
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.
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.
- v15.2.4Download Official Update
- v15.1.8Download Official Update
- v14.2.11Download Official Update
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
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
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.