我依設定Upload的設定(如下圖),就是無法上傳檔案,出現"沒有檔案被上傳. 請返回上頁並且選擇要上傳的檔案
"
Application Error #504
Havn't uploaded file, please return and choose the file which you want upload...
設定 :
$g_allow_file_upload = ON;
$g_file_upload_method = DISK;
$g_preview_attachments_inline_max_size = 5000000; #5M
$g_max_file_size = 20000000; # in bytes
$g_preview_attachments_inline_max_size = 800 * 1024;
$g_absolute_path_default_upload_folder = 'D:/Mantisbt/Mantisbt/upload/';
錯誤訊息如下:
爬文後,一一檢查後發現有兩個原因 1. config.inc.php 設定 2. folder的權限
1. 檢查 php-errors.log 檔案,路徑要查 php.ini
php-errors.log 出現 PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
應該是權限問題 ,再查php.ini的upload_tmp_dir 的路徑是C:\Windows\Temp
Check your setting and the access rights of upload_tmp_dir in php.ini
and Set the upload_tmp_dir as full control.
將 C:\Windows\Temp 設定Everyone 的權限是 full control.
最後再重新上傳檔案,應該就可以成功了
upload a file again.
留言列表