Roxy Fileman with CKEditor doesn't work after upload to server

痴心易碎 提交于 2019-12-24 12:43:56

问题


I have to use any file manager on my website. I chose Roxy Fileman, because it is compatible with CKEditor, which is my main text editor. The problem is, everything works when i test it on my localhost, but after publishing it on server I get error message: "The page cannot be displayed because an internal server error has occurred." There's no more info... Have you guys any idea what I should do?


回答1:


1) make sure Fileman folder is added to the directory

2) go to Fileman folder and in web.config add below code into the staticContent tag

  <!--Cache static content for 24 hours-->
  <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="24.00:00:00" />
  <!--Allow json file loading (used by Roxy Fileman)-->
  <remove fileExtension=".json" />
  <mimeMap fileExtension=".json" mimeType="application/json" />

3) and finaly make sure Fileman has permission to write data




回答2:


I had the same exact problem and after much research and diagnosing, this worked for me.

In the fileman directory, there is a web.config file. Open it in your text editor and you will see the following line:

<staticContent>
  <mimeMap fileExtension=".json" mimeType="application/json"/>
</staticContent>

Delete it from the web.config and save. It is conflicting with something on the live server where this configuration is already being set. I hope this helps anyone.



来源:https://stackoverflow.com/questions/24547659/roxy-fileman-with-ckeditor-doesnt-work-after-upload-to-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!