Got a file upload controller with the path to the images folder $config['upload_path'] = APPPATH.'../images/menu/';
. My images folder in on the same level as the application folder. It works fine in my localhost but it's not working in the remote host. i.e, when I click upload after selecting the file it kinda resets the select file field and nothing happens. Already set the folder permissions to 777, still nothing.
Any Ideas?
If images is on the same directory level as APPPATH, then surley your path should be APPPATH.'/images/menu/';
Also have you recursivley set the permissions on the directory, is menu writable?
Try some debugging,
if(!is_dir(APPPATH.'/images/menu/'))
{
echo "Not PAth" . APPPATH.'/images/menu/';
}
elseif(!is_writable(APPPATH.'/images/menu/')
I am pretty sure needs FCPATH but would be use full to show your code. APPPATH is for just showing application/views/welcome.php that's all that would retrieve
Where FCPATH gets full paths.
EXAMPLE: C:\Xampp\htdocs\yourproject\images/menu/
$config['upload_path'] = FCPATH . 'images/menu/';
Make sure the images folder is in main directory.
Thanks for all the replies. Although It didn't solve my problem, but i certainly learn a few things, I really appreciate. The problem I think is because I'm using Freehostrunner.com
for testing so that I can show to my client which is overseas before he purchases the domain. I believe that they do not allow file uploading scripts in their free account terms. :( Does anyone knows of a free remote host that allows that?