Welcome Guest, Not a member yet? Register   Sign In
[Solved] Problem on save image in public directory

(This post was last modified: 12-11-2020, 03:26 PM by PHS.)

I have the structure below my project:

(private directories)


(public directories)


I'm trying to send an Api file to the / images directory with file_put_contents but I'm not getting it. I've tried with:
file_put_contents (FCPATH. '....');
file_put_contents (APPPATH. '....');
file_put_contents (ROOT. '....');
file_put_contents (__ DIR__. '....');

I tried to change the permissions of the directory from 755 to 777.

And nothing worked.
What is the correct way to do this?

Messages In This Thread
[Solved] Problem on save image in public directory - by PHS - 12-11-2020, 08:21 AM

Theme © iAndrew 2016 - Forum software by © MyBB