DNN 9.6.2, previously upgraded from 9.2.0. We used to be able to upload files in Site Assets on 9.6.2 and out of the blue now when we attempt to upload a Bad Request error appears.
Error from log: DotNetNuke.Web.InternalServices.FileUploadController - System.InvalidOperationException: Bad Request at DotNetNuke.Web.InternalServices.FileUploadController.UploadFile(Stream stream, Int32 portalId, UserInfo userInfo, String folder, String filter, String fileName, Boolean overwrite, Boolean isHostPortal, Boolean extract, String validationCode)
Any idea how to fix this on 9.6.2 without upgrading? Thanks.
Pete,
if you followed the DNN Platform Suggested Upgrade Path you should have gone from 9.2.0 to 9.3.2 and then to 9.6.0 (or, even better, to 9.10.02).
Anyway, DNN requires .Net Framework 4.7.2 or higher (afair since version 9.4.2), this could also be an issue.
Happy DNNing! Michael
Michael TobischDNN★MVP
Thanks. I should have clarified 9.2.0 was our original install, but we did upgrade from 9.2.0 to 9.3.2 then to 9.6.2, which appeared to be an acceptable upgrade path at that time. We are targeting 4.7.2 as well.
I have re-synced files and folders in the file manager and compared web.config between this site, and another 9.6.2 site where the file upload is successful, but no leads.
If anyone has resolved a Bad Request error when uploading files I would love to hear your solution. Thanks.
We reapplied permissions for the App Pool. We checked the module and folder permissions in the Site Assets. Plenty of disk space as well. The file size isn't the problem either. We're testing with all file types and sizes. Even a 1KB file gets a Bad Request. Thanks.
Each time it happens the log files have the same message from my original post:
DotNetNuke.Web.InternalServices.FileUploadController - System.InvalidOperationException: Bad Request at DotNetNuke.Web.InternalServices.FileUploadController.UploadFile(Stream stream, Int32 portalId, UserInfo userInfo, String folder, String filter, String fileName, Boolean overwrite, Boolean isHostPortal, Boolean extract, String validationCode)
Thanks.
This was obviously a problem with 9.6.1 and looks like been fixed.
FileUpload validation code prevents super users from uploading to the default portal · Issue #3850 · dnnsoftware/Dnn.Platform (github.com)
I would suggest to upgrade to the latest version.
I was hoping to fix without needing to upgrade since we have other installations of 9.6.2 where this issue does not occur, but for this install it looks like we'll have to upgrade sooner than later. Thanks again.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.