There are a few fields that uses public upload destination. I changed it globally right now, as far as I know it uses private upload destination from now. But how can I change previously uploaded files' upload destination (programmatically)?
1 Answer
$dest = 'private://'; $file = file_move($file, $dest)
Change individual file from public to private and vice-versa
-
Hey Jimmy, thanks for your contribution. Could you maybe add some more explanation. As link-only or code-only answers are discouraged.– leymannxCommented Dec 16, 2018 at 8:07
-