File not uploading live hosting. help? :) |
I had this working fine on localhost, but since I put the folder structure outside public_html, I had to change the path to the upload directory. So I made a writable/uploads folder in public_html. The problem is it doesn't seem to upload, and my database just gives fillled with only part of the file path, with no filename. Sorry for all the posts, I'm used to CI2. and been away for awhile. so I skipped CI3. and a lot has changed!
PHP Code: rules = [ Edit.... now it is somehow uploading the files to the directory above public-html. I don't understand why its uploading there, cause I have the correct path listed above. Somehow ci is saving the files in an unaccessable folder.. Any ideas? I had to do this below. it works. PHP Code: filepath = $img->store('../../../public_html/writable/uploads/');
|
Welcome Guest, Not a member yet? Register Sign In |