Dansk Deutsch English Français Español

File upload

You can upload images and files to include them into your website.
To upload, use the Special:Upload page. You need the right to view the Special namespace and the right to upload.

The form will you ask for the file (limit 3 MB), for the filename on the server and for a comment. For each file, also a page in the Image namespace is created.

How to link to a file:
In the Configuration file, you can define the filetypes that are downloaded and not shown in the browser
$swMediaFileTypeDownload = ".xls.docx"
The period at the end of the
You need also to add a .htaccess file if you have downloadble file with the content or if you want to prevent hotlinking
AddType application/download .xls
AddType application/download .docx
RewriteRule ^(.*)$ index.php?name=$1 [L,QSA]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?yoursite.com [NC]
RewriteRule .(jpg|jpeg|png|gif|pdf|xls|docx)$ - [NC,F,L]

Note: There is no version control on files.
Note: Currently, only .jpg files are recognized as images.
Note: There is no limitation on the filetype at this time.