https://api.drupal.org/api/drupal/core%21includes%21file.inc/function/fi...
Transforms an absolute URL of a local file to a relative URL.
May be useful to prevent problems on multisite set-ups and prevent mixed content errors when using HTTPS + HTTP.
Parameters string
$file_url: A file URL of a local file as generated byfile_create_url().Return value string If the file URL indeed pointed to a local file and was indeed absolute, then the transformed, relative URL to the local file. Otherwise: the original value of
$file_url.
Recent comments
Ah, got it. You are right, this is a bug. I just opened a bug report: https://github.com/backdrop/backdrop-issues/issues/7238 Hopefully, this will be addressed soon. Thanks for...
Files uploaded using add file
I think, you are misunderstanding what i said. 1.admin/structure/file-types/settings = field/uploaded (or anything else) 2.admin/content/files (Manage Files), (the +Add files) link,...
Files uploaded using add file
The setting on admin/structure/file-types/settings is only for files uploaded via Content > Manage files. Not for files uploaded via a file field. File fields have their own setting for...
Files uploaded using add file