Full URL file information
Component ID
1976310
Component name
Full URL file information
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
3148
Component created
Component changed
Component body
This is a small utility module.
In Drupal 7 file information is built with schemas. File can be saved as public://, private://, and so on.
A utility function, file_create_url($path), is used in order to retrieve the web-accessible URL.
When working with external tools/sites/etc. (via Services, for example), it means that each time file information is retrieved, it should somehow be filled with the full URL.
This module solves this limitation -
- Install this module
- Go to http://example.com/admin/config/media/file-system
- Mark "Add full url value into files information" (disabled by default).
- Clean the cache
And since then each file information you will get will also include a "full_url" value, created by the file_create_url() function.
