Warning: move_uploaded_file 中文上传问题

原文链接:https://my.oschina.net/u/2296689/blog/545749

Warning: move_uploaded_file(../upload/attach/sean/������վ����.doc) [function.move-uploaded-file]: failed to open stream: No such file or directory inD:\xampp\htdocs\test\control\post_save.php on line 46

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'D:\xampp\tmp\phpA63E.tmp' to '../upload/attach/sean/������վ����.doc' inD:\xampp\htdocs\test\control\post_save.php on line 46

 

解决办法

 

$destPath =  '../upload/attach/sean/������վ����.doc

 

move_uploaded_file($_FILES["attach"]["tmp_name"][$index],$destPath);

 

改为

 

$destPath =  './../upload/attach/sean/������վ����.doc

 

这边是行了

转载于:https://my.oschina.net/u/2296689/blog/545749

上一篇:npm run build 时的 warning


下一篇:python logging模块