Download file with a specific filename
More actions
This extension lets you link to a file to download, but forcing it to have a different filename when saved. This works by setting the Content-Disposition header.
Syntax: [[Special:DownloadWithFilename/name of file page/filename to save as]]
The File: namespace prefix is not required.
Example:
[[Special:DownloadWithFilename/File:My Picture.png/image.png]]will downloadFile:My Picture.pngand be saved asimage.png[[Special:DownloadWithFilename/FooApplicationConfig.ini/config.ini]]will downloadFile:FooApplicationConfig.xmland be saved asconfig.ini[[Special:DownloadWithFilename/FooBarModSettings-Version2.0.3.yml/Settings.yml]]will downloadFile:FooBarModSettings-Version2.0.3.ymland be saved asSettings.yml
The maximum file size that can be downloaded through this page is 1048576 bytes.