Using this command in my server from a php file:
exec(gsutil cp /path/to/file/on/server/namefile.ext gs://nameBucket/dir/namefile.ext > /dev/null 2>&1)
i got the namefile.ext on bucket, in the correct directory...but need to make this file public readable.
Already tried to put this command (at the end of file, for make that public) but nothing to do:
exec(gsutil iam ch allUsers:objectViewer gs://nameBucket/dir/namefile.ext > /dev/null 2>&1)
So, upload works but I need to make file readable without my interaction from "browser" of bucket. There is a way to do this? Maybe into cp command?