php - Laravel uploaded files, low permissions -


good day everyone.

i building laravel 4 application , have file permissions issues.

once file has been uploaded client, it's moved in folder. however, file gets little permissions, assigned user www-data , can't touched / moved else.

i need know how dynamically permit laravel have permissions on files because i'm using cloudconvert convert file.

i'm on ubuntu 14.04 , prod on debian. tried chmod -r folder, works files saved, when new ones created, doesn't work anymore , stays in www-data ready-only low permissions.

thank answers.

edit : might have found : chmod g+s given permissions. read gave recursive permissions created files. i'll try once i'm home.

that account "www-data" default account web server. why becomes owner of files , has full access them, web angle. if happening trying convert files outside web context (like cron job or something) need make sure same user (or maybe group) owns files. have not tried cloudconvert (looks cool, check out) maybe can leverage laravel's queues , way execute conversion web server's "www-data" account?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -