Régis Hanol 48b4ed41f5 FIX: uploading an existing image as a site setting
The previous fix (f43c0a5d857d34) wasn't working for images that were already uploaded.
The "metadata" (eg. 'for_*' and 'secure' attributes) were not added to existing uploads.

Also used 'Upload.get_from_url' is the admin/site_setting controller to properly retrieve
an upload from its URL.

Fixed the Upload::URL_REGEX to use the \h (hexadecimal) for the SHA

Follow-up-to: f43c0a5d857d34
2020-07-03 19:16:54 +02:00
..
2020-05-27 19:05:24 +05:30
2019-11-19 10:21:06 +00:00
2020-04-28 15:59:39 +05:30
2019-11-29 15:49:08 +00:00
2019-10-21 12:08:20 +01:00
2019-05-13 15:24:24 +01:00
2020-05-05 13:46:57 +10:00
2019-12-04 13:33:51 -05:00
2020-05-27 19:05:24 +05:30
2020-05-27 19:05:24 +05:30
2020-04-28 15:59:39 +05:30
2019-10-21 12:08:20 +01:00
2020-01-27 15:28:56 +01:00
2020-04-28 15:59:39 +05:30
2020-04-28 15:59:39 +05:30
2020-01-27 15:28:56 +01:00
2019-10-17 16:58:22 +11:00