Codeigniter 3 File Upload Issue - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Codeigniter 3 File Upload Issue (/showthread.php?tid=68344) |
Codeigniter 3 File Upload Issue - codeigniterd - 06-26-2017 View File Code: <form id="DocUploadForm" action="" method="post" enctype="multipart/form-data"> JS File *i am using jquery validate to validate the form Code: $("#DocUploadForm").validate({ Code: $config['upload_path'] = './assets/'; I is always showing "file uoload failed". There is no permission issues. i have checked. Dont know the reason !! Thanks in advance for help. RE: Codeigniter 3 File Upload Issue - Martin7483 - 06-27-2017 Use this and see what is causing the problem PHP Code: $this->upload->display_errors() This will get the error messages that where set by CI during upload PHP Code: if($this->upload->do_upload('pdocupload')) RE: Codeigniter 3 File Upload Issue - InsiteFX - 06-27-2017 Also you can check your browsers development tools and see what is going on for errors F12 key on most. RE: Codeigniter 3 File Upload Issue - codeigniterd - 06-27-2017 it is showing Code: <p>You did not select a file to upload.</p> Don't know why !! RE: Codeigniter 3 File Upload Issue - rtenny - 06-28-2017 Just a few things I would check. Is the file of the allowed type? (I had jpg files called file.jpeg which caused an error) if $config['allowed_types'] case insensitive? What would happen if the file is called file.JPG Is the file upload limit in php.ini high enough? You set it in the config to 8048 but if in php.ini its still to 2M this will still fail Is max_post_size in php.ini high enough? I hope this helps. RE: Codeigniter 3 File Upload Issue - codeigniterd - 06-28-2017 All Things I have Checked many times and those are fine.. My Issue is file is not uploading i guess. $_FILES has nothing.. Don't know why !! RE: Codeigniter 3 File Upload Issue - PaulD - 06-28-2017 Try removing the jquery validation from the form. It might be that the serialisation is stopping the form upload from working as a multi type form. Can you do a form upload test page without any js and see if you can upload a form then. If you can, the problem is the js. If you can't then at least you are starting to work out where the problem might be. RE: Codeigniter 3 File Upload Issue - codeigniterd - 07-03-2017 managed other ways. thanks RE: Codeigniter 3 File Upload Issue - 700brains - 10-08-2017 (07-03-2017, 08:00 PM)codeigniterd Wrote: managed other ways. thanks Hi please which other ways do you use in making it work because mine is not working. Thanks |