LifeType 中文開發論壇

支援 => 使用與操作 => 主題作者是: yuhder 於 三月 09, 2005, 03:09:43 下午



主題: 新增檔案時發生錯誤
作者: yuhder三月 09, 2005, 03:09:43 下午
各位大大:
我在新增檔案時,每次上傳中文檔名的檔案時,都會發生錯誤,錯誤訊息如下:
上傳不是中文檔名的檔案時,就不會發生錯誤,請問我要怎樣才能上傳中文檔名的檔案呢?謝謝!

Exception message: move_uploaded_file(./tmp/0940223會議記錄.pdf): failed to open stream: Invalid argument
Error code: 2
-- Backtrace --
c:\appserv\www\plog\class\file\fileuploads.class.php(56): move_uploaded_file
c:\appserv\www\plog\class\gallery\dao\galleryresourcestorage.class.php(215): fileuploads.process
c:\appserv\www\plog\class\gallery\dao\galleryresources.class.php(197): galleryresourcestorage.store
c:\appserv\www\plog\class\action\adminaddresourceaction.class.php(69): galleryresources.addresource
c:\appserv\www\plog\class\controller\controller.class.php(102): adminaddresourceaction.perform
c:\appserv\www\plog\admin.php(37): admincontroller.process

Exception message: move_uploaded_file(): Unable to move 'C:\WINNT\TEMP\phpF.tmp' to './tmp/0940223會議記錄.pdf'
Error code: 2
-- Backtrace --
c:\appserv\www\plog\class\file\fileuploads.class.php(56): move_uploaded_file
c:\appserv\www\plog\class\gallery\dao\galleryresourcestorage.class.php(215): fileuploads.process
c:\appserv\www\plog\class\gallery\dao\galleryresources.class.php(197): galleryresourcestorage.store
c:\appserv\www\plog\class\action\adminaddresourceaction.class.php(69): galleryresources.addresource
c:\appserv\www\plog\class\controller\controller.class.php(102): adminaddresourceaction.perform
c:\appserv\www\plog\admin.php(37): admincontroller.process

Exception message: rename(./tmp/0940223會議記錄.pdf,./gallery/2/2-10.pdf): Invalid argument
Error code: 2
-- Backtrace --
c:\appserv\www\plog\class\file\file.class.php(245): rename
c:\appserv\www\plog\class\gallery\dao\galleryresourcestorage.class.php(224): file.rename
c:\appserv\www\plog\class\gallery\dao\galleryresources.class.php(197): galleryresourcestorage.store
c:\appserv\www\plog\class\action\adminaddresourceaction.class.php(69): galleryresources.addresource
c:\appserv\www\plog\class\controller\controller.class.php(102): adminaddresourceaction.perform
c:\appserv\www\plog\admin.php(37): admincontroller.process


主題: 新增檔案時發生錯誤
作者: markwu三月 09, 2005, 04:59:45 下午
請參考 http://forum.lifetype.org.tw/index.php?topic=154.0。

Mark