Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
PUBLISH DATE
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Uploading Files
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Uploading Files = Publish Date allows users to upload images, documents, and other media files for use within wiki pages. This guide explains how to enable uploads and how to insert files into pages properly. == Uploading a File == # Log in to your account. # Navigate to [[Special:Upload]]. # Click '''Choose File'''. # Enter a destination filename. # Add a description and licensing information. # Click '''Upload file'''. After uploading, the file will be available at: <code>File:Filename.ext</code> == Using Uploaded Files in Pages == === Display an Image === <syntaxhighlight lang="wiki"> [[File:example.jpg|thumb|300px|Caption here]] </syntaxhighlight> === Display Without Thumbnail === <syntaxhighlight lang="wiki"> [[File:example.jpg|300px]] </syntaxhighlight> === Link to a PDF or Document === <syntaxhighlight lang="wiki"> [[File:document.pdf]] </syntaxhighlight> To create a direct link: <syntaxhighlight lang="wiki"> [[:File:document.pdf]] </syntaxhighlight> == Allowing Additional File Types == To allow additional formats: <syntaxhighlight lang="php"> $wgFileExtensions[] = 'svg'; $wgFileExtensions[] = 'webp'; </syntaxhighlight> To disable strict file extension checking: <syntaxhighlight lang="php"> $wgStrictFileExtensions = false; </syntaxhighlight> == Troubleshooting == {| class="wikitable" ! Problem ! Solution |- | Upload option missing | Ensure <code>$wgEnableUploads = true;</code> |- | File type not allowed | Add the extension to <code>$wgFileExtensions</code> |- | Permission denied | Check folder permissions on the <code>/images</code> directory |- | File too large | Increase <code>$wgMaxUploadSize</code> and PHP <code>upload_max_filesize</code> |} == See Also == * [[Special:Upload]] * [[Help:Images]] * [[Help:Contents]] [[Category:Help]]
Summary:
Please note that all contributions to PUBLISH DATE may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
My wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Uploading Files
(section)
Add topic