Download file with a specific filename

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 download File:My Picture.png and be saved as image.png
  • [[Special:DownloadWithFilename/FooApplicationConfig.ini/config.ini]] will download File:FooApplicationConfig.xml and be saved as config.ini
  • [[Special:DownloadWithFilename/FooBarModSettings-Version2.0.3.yml/Settings.yml]] will download File:FooBarModSettings-Version2.0.3.yml and be saved as Settings.yml

The maximum file size that can be downloaded through this page is 1048576 bytes.