Path to images when creating post

  • Last Post 13 January 2018
  • Topic Is Solved
vunder posted this 24 July 2017

I have MVCForum under IIS as a separate application "forum". Hovewer there is a problem with path to images I'm trying to upload/attach to post. They are referenced to the root "/content/upload...". But the root of the site if "/forum/<sub-path>". How can I change this?

Order By: Standard | Newest | Votes
vunder posted this 27 July 2017

Found the solution.

In the TinyMcePluginsController.UploadImage I've changed the result to:

return Url.Content(uploadedFile.FilePath);

  • Liked by
  • YodasMyDad
udreams posted this 13 January 2018

There is another solution which does not need to recompile the project.

In Scripts/tinymceplugins/ImageUpload folder, change the imageupload.js as the following figure:

  • Liked by
  • YodasMyDad