Download the PHP package daun/statamic-original-filename without Composer
On this page you can find all versions of the php package daun/statamic-original-filename. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download daun/statamic-original-filename
More information about daun/statamic-original-filename
Files in daun/statamic-original-filename
Package statamic-original-filename
Short Description Remember the original filenames of assets uploaded in Statamic
License MIT
Homepage https://github.com/daun/statamic-original-filename
Informations about the package statamic-original-filename
Statamic Original Filename
Remember the original, unsanitized filenames of assets uploaded in Statamic.
This addon stores the original filename of uploaded assets in their metadata, allowing later access even after Statamic has sanitized the filename for compatibility. Useful for allowing downloads with the original name or using it as a worst-case alt text for images.
- Filename as uploaded:
Fauvette à tête noire © Jean Dupont.jpg - Filename as sanitized:
fauvette-a-tete-noire-jean-dupont.jpg - Original filename:
Fauvette à tête noire © Jean Dupont
Installation
Usage
Once installed, the addon will store the original filename of each uploaded asset in its
metadata under the key original_filename. The filename is saved without the file extension.
Frontend
To offer downloads using the original filename:
To use the original filename as fallback alt text for images:
Backend
If you want your editors to see (and possibly edit) the original filename in the control panel,
add a text field to your asset blueprint, using original_filename as the handle.