開發人員在我們的網站上爲我們上傳圖片。每次嘗試我都會收到此錯誤消息。但不是所有的圖像。部分圖片已上傳但未顯示。我錯過了什麼嗎?我在編程中沒有線索...... Kohana需要幫助
"Kohana_Exception [ 0 ]: Directory DOCROOT/data/clients/logos/ must be writable"
**SYSPATH/classes/kohana/upload.php [ 80 ]**
75 $directory = Upload::$default_directory;
76 }
77
78 if (! is_dir($directory) OR ! is_writable(realpath($directory)))
79 {
80 throw new Kohana_Exception('Directory :dir must be writable',
81 array(':dir' => Debug::path($directory)));
82 }
83
84 // Make the filename into a complete path
85 $filename = realpath($directory).DIRECTORY_SEPARATOR.$filename;
謝謝你的......但我不是德無論如何,並不知道我應該做什麼。所以......我假設我需要創建一個名爲DOCROOT的文件夾,並在該文件夾內創建另一個名爲data的文件夾,並在其內創建另一個名爲clients的文件夾,然後是另一個名爲logos的文件夾? – user2440840
圖像文件類型是否重要? – user2440840
好吧...所以我只是這樣做,但它並沒有幫助仍然相同的錯誤信息。正如我上面所解釋的,它可以處理一些圖像,通常是較大尺寸的圖像,但是當它上傳時,圖像應該只顯示一個「x」。 – user2440840