Timeline for How to make existing public files private?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 25 at 20:21 | review | Suggested edits | |||
Dec 4 at 19:07 | |||||
Nov 12, 2020 at 22:40 | comment | added | mbomb007 | FileField Paths didn't work for me. No idea why. | |
Nov 12, 2020 at 16:24 | comment | added | mbomb007 |
You don't have to empty the table to change the file system setting. For Drupal 7, you can just run this (this is for all fields, you can change the WHERE for a specific one): UPDATE field_config SET data = REPLACE(field_config.data, 's:10:"uri_scheme";s:6:"public";', 's:10:"uri_scheme";s:7:"private";') WHERE data LIKE '%s:10:"uri_scheme";s:6:"public";%';
|
|
Jul 10, 2018 at 12:15 | comment | added | leymannx | FileField Paths definitely is the way to go! Though steps 1 to 5 are invalid in D8. | |
Jul 9, 2018 at 21:45 | history | answered | Chris Happy | CC BY-SA 4.0 |