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 https://github.com/dnnsoftware/Dnn.React.Common. 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.