README 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. The StoreRemoteMedia plugin downloads remotely attached files to local server.
  2. Installation
  3. ============
  4. add "addPlugin('StoreRemoteMedia');"
  5. to the bottom of your config.php
  6. Settings
  7. ========
  8. domain_blacklist: Array of regular expressions. Always escape your dots and end your strings.
  9. check_blacklist: Whether to check the domain_blacklist.
  10. domain_whitelist: Array of regular expressions. Always escape your dots and end your strings.
  11. check_whitelist: Whether to check the domain_whitelist.
  12. When check_whitelist is set, only images from URLs matching a regex in the
  13. domain_whitelist array are accepted for local storage. When check_blacklist
  14. is set, images from URLs matching any regex in the domain_blacklist are
  15. denied local storage. When both lists are checked, only images from URLs
  16. that match a regex in the domain_whitelist and that match no regexen in the
  17. domain_blacklist are accepted for local storage.
  18. Example
  19. =======
  20. addPlugin('StoreRemoteMedia', array(
  21. 'domain_whitelist' => array(
  22. '^i\d*\.ytimg\.com$' => 'YouTube',
  23. '^i\d*\.vimeocdn\.com$' => 'Vimeo'
  24. ),
  25. 'check_whitelist' => true,
  26. ));