psolom / RichFilemanager

An open-source file manager. Up-to-date for PHP, Java, ASHX, ASP, NodeJs & Python 3 Flask. Contributions are welcome!
http://fm.devale.pro
905 stars 251 forks source link

Upload mode not passing through on connector url (.NET CORE connector) #378

Open tharris9d opened 5 years ago

tharris9d commented 5 years ago

In raising this issue, I confirm the following (please check boxes):

I use the following server-side connector (check one):

My familiarity with the project is as follows (check one):


Files are not uploading. We get a 500 error. When stepping through the filemanagercontroller.cs we noticed that the mode upload was always showing NULL. All other modes are working properly. The filemanager.js file looks like the mode is set to 'upload' properly but it's not passing through on the the post. We modified the c# code as an emergency workaround and the images started uploading. (See snippet below). We have upload as a capability. Is anyone else having an issue with the upload mode not passing through on the connector url?

/////////////////////////////////////////////////////////////// public IActionResult Index(string mode, string path, string name, List files, string old, string @new, string source, string target, string content, bool thumbnail, string @string) { try { if (mode == null) { mode = "upload"; //Temporary fix for file upload //return null; }