Welcome Guest, Not a member yet? Register   Sign In
CI 3 + Dropzone
#2

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'))
 
       {
 
           //handle errors
 
           echo  $this->upload->display_errors();
 
       } else {
 
           //success, do something with the result!
 
           print_r($this->upload->data());
 
       
Reply


Messages In This Thread
CI 3 + Dropzone - by Camp1 - 01-10-2019, 10:41 AM
RE: CI 3 + Dropzone - by alexmocanu - 01-11-2019, 03:19 AM
RE: CI 3 + Dropzone - by php_rocs - 01-11-2019, 06:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB