New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing new file upload control issueUsing new file upload control issue
New Post
7/13/2017 5:11 PM


We are extending an existent module, we added a control to upload a file to DNN. To do this, we decided to use the new control FileUpload in In DNN9.0 everything was working as expected, but with DNN 9.1 we found two issues.

1) When calling http://localhost/evoq_content//API/InternalServices/FileUpload/UploadFromLocal the server was throwing unauthorize error (403). Checking how it works in DNN 9.1 and the differences with DNN 9.0, we found that in DNN 9.1 the parameter RequestVerificationToken was added to the request headers (it was not there in DNN 9.0), adding this parameter with the right value make this work, but is this correct? I thought it should be enough with the cookie, but is not working just with the authentication cookie.

2) This is a little strange, not sure where the problem comes from, but the form of the FileUpload control that was working perfectly in DNN9.0 now is throwing a 503 error when posting back, even without uploading any file. If I remove the control, the form postback works fine. We are still investigating this issue, but any help or Ideas will be appreciated.




Javier Rodríguez
1775 W. State Street Suite 371, Boise ID 83702 USA
New Post
11/16/2017 12:37 PM
Javier (and all) -- I saw your post and I was thinking that maybe, in some way, my development experience may help a little. Here is what happened to me recently. I build ASCX-based custom Modules with C# and they are simple to develop and quite stable, and I can do almost anything in them with pure C#. I was recently was trying to use a custom file uploader, specifically the ones from the AjaxControlToolkit. I should say I am working with DotNetNuke "8.0.3" as I cannot upgrade yet. Anyway, using those controls turned into a major horror show. It was extremely fragile and styling was near impossible. DLL references would break often, for no apparent reason. At least for me. Then, I tried several jQuery/JavaScript alternatives. No luck. Quirky. Hard to setup. Too much of a Ball Of Mud of JavaScript and jQuery and "related" files. So, I downgraded, and I went back to the pure "asp:fileupload" control and it works great-- not as robust or fancy as some other controls claim to be-- but it is very stable and cross-browser support seems good so far. The only caveat is that it uses the underlying HTML input type=file control, which is notoriously difficult to style so my solution was to add no style to it at all and use it out of the box and it does actually look (and work) well in IE, Edge, Chrome, FireFox, modern versions. So, for you, at least as an experiment to help you narrow down the issues, I would say write a test with the plain-vanilla "asp.fileupload" control (if at all possible) and if it works (or doesn't) then that should tell you something about your issues there. Also, as another test, try to remove all styling from the control you are using, because setting custom styling seemed to really muck-up some of the file upload controls that I tried. Well, that is my saga-- may it one day help a fellow traveller. HTH. Thanks. -- Mark Kamoski
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing new file upload control issueUsing new file upload control issue

These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out