Codeigniter do_upload doesn't response in production server |
[eluser]mF4d[/eluser]
Hi guys, I think I should ask the problem here, I've been trying to figure this out. I made a page that will upload certain file types. It works fine in my local development but not in production. It won't pass the do_upload() function. Nothing is displayed beyond that. My folder structures: Code: public_html/gtapp/ In config.php: Code: $config['base_url'] = 'http://www.mydomain.com/gtapp/ In index.php: Code: $application_folder = 'v1'; The uploads folder permission is 777. I tried changing the upload_path to non existing folder, it show 'The upload path does not appear to be valid'. Means the do_upload() does work right? Below is codeigniter codes: Code: $path = 'uploads'; I made a simple native PHP codes and it works. Below is the code: Code: $path = './uploads/'; do_upload() does simplify things a lot, I hope could use it before turning over to the native codes. Maybe someone have some ideas on what happen? That would be great. *cross post http://stackoverflow.com/questions/12337...ion-server I apologize for cross posting.
[eluser]siptik[/eluser]
Do you have the message "uploadAttachment" after posting form? sorry, i bad english
[eluser]mF4d[/eluser]
Yes, 'uploadAttachment' is showing. I add print_r($_FILE); just before the do_upload, will edit above post. Below is what showing with the above codes.: Code: uploadAttachment When run in the local: Code: uploadAttachment
[eluser]siptik[/eluser]
maybe you forgot to allow access to the folder in .htaccess?
[eluser]mF4d[/eluser]
[quote author="siptik" date="1347349567"]maybe you forgot to allow access to the folder in .htaccess?[/quote] Thanks, but I didn't set any .htaccess. Is that the case? What should I set in them? I think the folder can be accessed because the native php code I wrote to upload the file is working fine in production. |
Welcome Guest, Not a member yet? Register Sign In |