CI 3 + Dropzone |
I'm trying to create an image upload with Dropzone, every time I attach an image, I get POST 200 and I think everything is fine but the image has not been uploaded.
I can not make it work, can someone help me? Thanks!!!! Controller: Code: public function test(){ View: Code: <link href='https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/dropzone.css' type='text/css' rel='stylesheet'>
You should be doing some basic error checking on the server too. Dropzone just grabs the file and sends it to the server. What happens after that is no longer it's concern.
Replace this: PHP Code: $this->upload->do_upload('file') With something like this and see what error is being reported. PHP Code: if ( ! $this->upload->do_upload('file')) |
Welcome Guest, Not a member yet? Register Sign In |