Welcome Guest, Not a member yet? Register   Sign In
issue with uploader
#4

(This post was last modified: 04-07-2016, 04:57 PM by PaulD. Edit Reason: Type )

You are redirecting to the admin/dashboard in all circumstances, but you could be missing an error message.

Try doing something like:
PHP Code:
if ( ! $this->upload->do_upload($upload_image))

 
  $error $this->upload->display_errors('''');
 
  show_error('Upload Errors: '.$error401'Upload Error');
 
  exit;


Perhaps your path/to/directory is not set correctly, or it is the image type, or the size etc etc. You should always be checking and reporting back to the user when an error occurs. Otherwise, how do you or the user know what is going on?

Hope that helps,

Paul

PS Am just using the 'show_error' for simplicity here, it is a quick solution while testing or developing. Of course normally you would have a user error view and/or error logging in place of some description.
Reply


Messages In This Thread
issue with uploader - by doomie22 - 04-07-2016, 07:12 AM
RE: issue with uploader - by cartalot - 04-07-2016, 01:36 PM
RE: issue with uploader - by doomie22 - 04-07-2016, 01:52 PM
RE: issue with uploader - by PaulD - 04-07-2016, 04:54 PM
RE: issue with uploader - by doomie22 - 04-08-2016, 12:28 PM
RE: issue with uploader - by PaulD - 04-08-2016, 12:37 PM
RE: issue with uploader - by cartalot - 04-08-2016, 12:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB