图像已成功发送,但是收到“内部服务器错误” dropzone的通知

时间:2019-02-24 22:54:34

标签: javascript php upload dropzone

如果500(内部服务器错误)发出通知,但图像已成功发送用于上传方法, images

对于dropzone表单,我只是这样写

<form action="<?= base_url() ?>backend/galeri/create" class="dropzone" id="dropzoneForm" enctype="multipart/form-data">
</form>

以及我的控制器

$config['upload_path'] = getcwd() . '/uploads/galeri/';
            $config['allowed_types'] = 'jpg|jpeg|png|gif';
            $config['file_name'] = $_FILES['file']['name'];
            $config['width'] = 900;
            $config['height'] = 600;

            $this->load->library('upload',$config);
            $this->upload->initialize($config);

            if($this->upload->do_upload('file')){

                $uploadData = $this->upload->data();
                $foto = $uploadData['file_name'];

            }

也许有人可以帮助我解决此错误?

0 个答案:

没有答案