uploading picture |
I need someone to help me fix this error message:
404 Page Not Found The page you requested was not found. After uploading picture and press upload it carries me to this : views/addslideshows.php PHP Code: <td> controllers/cuploadfile.php PHP Code: function upload() Can anyone help me figure this thing out?
" If I looks more intelligence please increase my reputation."
I add this to routes. Can anyone help me fix this error message:
routes.php PHP Code: $route['cuploadfile/upload_galleries/addslideshows'] = 'cloadfile/upload_galleries';
" If I looks more intelligence please increase my reputation."
hello,
must use it into a form , you put it without form and direction for the action after submission. read a documentation about upload library .
(08-18-2016, 08:31 PM)davy_yg Wrote: I add this to routes. Can anyone help me fix this error message: I do not see and form multipart any where use form helper http://www.codeigniter.com/user_guide/he..._multipart On controller __construct area load helper or autoload it and then on view echo form_open_multipart('controller/function') echo form_close() Note: Make sure you set your base url.
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
I wonder why this error still appears:
http://127.0.0.1/CompanyGiondaCI/index.p...ile/upload 404 Page Not Found The page you requested was not found. ------------------------------------------------------------------ config/config.php PHP Code: $config['base_url'] = 'http://127.0.0.1/CompanyGiondaCI'; views/addslideshows.php PHP Code: <legend>CodeIgniter File Upload Demo</legend><br> controllers/Cuploadfile.php PHP Code: <?php
" If I looks more intelligence please increase my reputation."
Your "bad" link (http://127.0.0.1/CompanyGiondaCI/index.p...ile/upload) refers to "Cuploadfile", not to "uploadfile".
Where does the extra "C" come from? Why didn't you notice this?
404 Page Not Found
The page you requested was not found. controllers/Cuploadfile.php PHP Code: //file upload function config/routes.php PHP Code: $route['Cuploadfile/upload'] = 'Cuploadfile/upload';
" If I looks more intelligence please increase my reputation."
Obviously you will get 404 errors:
your form : PHP Code: echo form_open_multipart('uploadfile/upload'); Your controller: controllers/Cuploadfile.php Your route (pointless code anyway and wrong): PHP Code: $route['cuploadfile/upload_galleries/addslideshows'] = 'cloadfile/upload_galleries'; Remove the route. change the form_open.. to point to the controller/method 'cuploadfile/upload' That should get you on the right path. Also do yourself (and everyone else here) a favour: Do these in order: Learn English Learn to listen Learn Logic Learn PHP Learn MySQL Then come back A good decision is based on knowledge and not on numbers. - Plato
He's also missing the ending slash on the config base_url
This is also wrong: PHP Code: $config['upload_path'] = 'uploads/'; Should be: PHP Code: $config['upload_path'] = './uploads/'; What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Okay, I change something:
config/config.php PHP Code: $config['base_url'] = 'http://127.0.0.1/CompanyGiondaCI/'; controllers/Cuploadfile.php PHP Code: //file upload function I still receiving this error messages: 404 Page Not Found The page you requested was not found.
" If I looks more intelligence please increase my reputation."
|
Welcome Guest, Not a member yet? Register Sign In |