http包装器不支持opencart

时间:2017-09-29 07:37:57

标签: opencart-3

我正在尝试在Opencart中自定义上传图片,

这是我的代码: - >

  $base_url =  $this->config->get('config_url'); 
                        $upload_path = $base_url."image/customer/";
                        //echo $upload_path . $image1;die;

                         if (!empty($_FILES['image']['name'])) {
                                     $image1 = $_FILES['image']['name'];
                                     $file_tmp = $_FILES['image']['tmp_name'];

                                       $img_res= move_uploaded_file($file_tmp, $upload_path . $image1);

                                }

我收到此错误消息: - >

警告:

  

move_uploaded_file(http://localhost/wm/image/customer/download   (1).jpg):无法打开流:HTTP包装器不支持   可写连接   第220行的C:\ xampp \ htdocs \ wm \ catalog \ controller \ feed \ user_api.php   警告:move_uploaded_file():无法移动   'C:\ xampp \ tmp \ phpC5CC.tmp'来   'http://localhost/wm/image/customer/download(1).jpg'in   第220行的C:\ xampp \ htdocs \ wm \ catalog \ controller \ feed \ user_api.php

0 个答案:

没有答案