1
我在我的項目中使用了elFiner
(帶有elFinder連接器),並且在localhost上運行良好。
但是,當我部署到服務器(在線託管),它給了我一個錯誤target dir not found or access denied
。這是我的配置;設置網站託管(IIS 7+)的elFinder的正確路徑
<elFinder apiVersion="2.0"
localFSRootDirectoryPath="D:\Projects\Emaar\Emaar.Web\Areas\EmaarAdmin\Content\images"
localFSThumbsDirectoryPath="D:\Projects\Emaar\Emaar.Web\Areas\EmaarAdmin\Content\images\.thumbs"
rootDirectoryName="Root"
uploadMaxSize="20M"
defaultVolumeName="LocalFileSystem"
baseUrl="http://localhost:4595/Areas/EmaarAdmin/Content/images/"
baseThumbsUrl="http://localhost:4595/Areas/EmaarAdmin/Content/images/.thumbs/"
duplicateFilePattern="Copy of {0}"
duplicateDirectoryPattern="Copy of {0}"
thumbsSize="48,48">
</elFinder>
我相信我的路徑在我的web.config中不正確。
我如何設置elFinder
也可以在線(在網上)工作?
更新:我的在線設置看起來像這樣;
<elFinder apiVersion="2.0" localFSRootDirectoryPath="\Areas\EmaarAdmin\Content"
localFSThumbsDirectoryPath="\Areas\EmaarAdmin\Content\.thumbs"
rootDirectoryName="Root Main" uploadMaxSize="20M" defaultVolumeName="LocalFileSystem"
baseUrl="http://subdomain.domain.com/Areas/EmaarAdmin/Content/"
baseThumbsUrl="http://subdomain.domain.com/Areas/EmaarAdmin/Content/.thumbs/"
duplicateFilePattern="Copy of {0}" duplicateDirectoryPattern="Copy of {0}" thumbsSize="48,48">
我還設置權限爲Read
和Write