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:
- Use a internal link [ [ Image:animage.jpg ] ] to embed it as image or use it as direct link
- Use an internal link [ [ :Image:animage.jpg ] ] to link to the image page.
- Use an internal link with the pseudo namespace Media [ [ Media:animage.jpg ] ] to link directly to the file.
$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.