我已經使用CakeDC用戶插件。 我需要爲用戶上傳/添加個人資料圖片。CakePHP-2.0,我如何上傳用戶配置文件的圖像?
我該怎麼做?
任何人都可以發佈代碼來上傳圖片嗎?
http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html
我加了這一點,但我只拿到了一個按鈕。
echo $this->Form->create('Document', array('enctype' => 'multipart/form-data'));
echo $this->Form->file('Document.submittedfile');
echo $this->Form-end();
如何設置/獲取上傳文件的路徑?
你的**具體**問題是什麼?你試過什麼了? – Dave 2012-04-09 13:05:11
我更新了原來的問題。 – shibly 2012-04-09 13:46:12