其他分享
首页 > 其他分享> > Warning: move_uploaded_file 中文上传问题

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

标签:uploaded,..,move,attach,Warning,sean,file
来源: https://blog.csdn.net/chuoxieai9700/article/details/100904888