Problem uploading picture |
hi everyone! I have a profile view in which you can change the profile picture. I'd like to create this behaviour:
- The relative pic path will be saved in the user table under the avatar column, - The actual picture will be saved on the server in assets/profiles folder So i read the tutorial, and I have some problem making the folder writable apparently (I'm on mac) PHP Code: <?php if(is_writable(base_url('assets/profiles'))){ But let's go on... This is my form: PHP Code: <div class="file btn btn-lg btn-primary"> This is my controller: PHP Code: public function do_upload() Now, I know that it's not doing what I want (yet), since I'm firstly trying to upload the picture... Later I'll think of storing the path in my table, and deleting the old profile pic, but I think I'm capable of thing it... The problem is uploading the damn picture xD UPDATE: I keep getting a message 'The upload path does not appear to be valid.' But according to my computer I have permissions... Could it be a problem related to docker or lamp server? |
Messages In This Thread |
Problem uploading picture - by mandiatutti - 09-11-2019, 03:21 AM
RE: Problem uploading picture - by InsiteFX - 09-11-2019, 08:14 AM
RE: Problem uploading picture - by mandiatutti - 09-11-2019, 09:50 AM
RE: Problem uploading picture - by InsiteFX - 09-11-2019, 05:57 PM
RE: Problem uploading picture - by includebeer - 09-12-2019, 12:58 PM
RE: Problem uploading picture - by mandiatutti - 09-16-2019, 01:26 AM
RE: Problem uploading picture - by mboufos - 09-16-2019, 05:53 AM
RE: Problem uploading picture - by mandiatutti - 09-16-2019, 06:11 AM
RE: Problem uploading picture - by yeumaytinh - 06-15-2020, 06:50 AM
|