Problem with Rich File Manager with default TinyMCE editor and upload path (v2024)

Hi, I’m using RichFileManager to upload and choose images to include in the text editor.
In my local app all works as expected: editing my table record I open the “Insert\Image” options in the TinyMce editor menu, I upload an image and it returns the right path-to-image “/public/userfiles/MyImage.JPG”

If I do the same thing in the web deployed app, the same procedure fails: I can upload a new image (“All files uploaded successfully”), the thumbnail is shown as expected, but when I click on the image to select it, the image is not shown, there is a js error in its path: myapp//myapp/public/userfiles/MyImage.JPG?time=1743066670335
This is the same wrong url it returns to editor if I select the image. If I go to the expected folder, the image is not there.
“myapp” is the web application I created on the website root: the url of the ANM app is “https://www.mysite.com/myapp” while in the local version is “http://myapp.local

  1. The problem is when resolving ServerMapPath and there is in root the name of the app.
    How can we resolve?

  2. Where can I setup the default language, maybe in “models\filemanagercfg.cs”? any idea to do this without the needing to reapply the modify at every project regeneration? It would be great to automatically have the ANM project language or the TinyMCE editor language as default…

It is probably related to the sub path in the site URL. Try using a subdomain such as myapp.mysite.com

I can’t. All is working ok with the webapp, the only problem is the current folder path in RichFileManager. Can I setup manually somewhere in the ANM files?

You can download and try ASP.NET Maker 2025 and see if it can work correctly.