File upload not working |
[eluser]learning_php[/eluser]
Hi, i had an image upload function working on my localhost but when i put in on the server it gives me a error: Code: The upload path does not appear to be valid. controller Code: function upload() view Code: <!DOCTYPE HTML>
[eluser]Dam1an[/eluser]
I'm assuming the directory obviously exists Have you changed the file permissions to be writeable?
[eluser]learning_php[/eluser]
Hi, yea it there as i can see the contents of it if i go to www.wesayido.co.uk/uploadsand on the server it has a permission number of 0755 and when i click and go to file permissions all teh boxs are ticked.
[eluser]Dam1an[/eluser]
So only the owner has write permission to the folder It could be that on the production server, apache is being run under a diferant user group, therefore doesn;t have permission Try changing it to 777
[eluser]learning_php[/eluser]
Hi, I have changed the permissions to 777 but i get the same error
[eluser]learning_php[/eluser]
Hi, ./uploads works on my localhost my not on the live server? I changed the contoller to the following but i still get the same error Code: function upload()
[eluser]learning_php[/eluser]
HI, if i change it to this Code: $config['upload_path'] = realpath((BASEPATH.'/images/')); Code: The upload destination folder does not appear to be writable.
[eluser]nicholas.byfleet[/eluser]
is your .htaccess file messing things up? just brainstorming here. |
Welcome Guest, Not a member yet? Register Sign In |