![mediawiki upload file mediawiki upload file](https://www.cloudways.com/blog/wp-content/uploads/Media-wiki-mainpage-768x373.png)
Since the file name is already in the title of file page, this may seem like an unnecessary step. Note that you must already have created a template called "MyFileTemplate" that contains a property for the file name, to use on file pages. The completed info tag should look like this: You must put "File:" in front of that parameter so that the page is created in the correct namespace. This can be done using a parameter of the form Since you don't know what the page name will be until after someone uses the form to upload a file, the page name will have to be extracted from the filename of the uploaded file. After you upload it to MediaWiki, assuming you keep the same name, the following. You will need to precede your semantic form definition with an info tag that uses the page name= parameter to specify the name of the page to be created. Images Explained Suppose myfile.jpg is a graphics file on your local PC. Let's say you have files you want to upload that should have semantic property data associated with them that will tell you some basic facts about the file. This allows Semantic Forms to add properties to the file's page. The info tag can be used to allow the page name to be extracted by Semantic Forms from the filename of a file AFTER a file is uploaded, instead of using the normal method of specifying the page name before a file is uploaded. This is a problem if Semantic Forms is being used to upload files that are supposed to have semantic data associated with them, because the name of the page is not known until AFTER the file is uploaded and given a name, since the page name will be based on the file's name. Semantic Forms normally requires the name of a page to be entered BEFORE it can create it. For example, the page for "MySillyFace.jpg" would be called File:MySillyFace.jpg, assuming the user does not change the filename in MediaWiki's upload dialog to something like File:MySexyFace.jpg. When files are uploaded to MediaWiki, a page is created for that file in the File namespace, using the filename of the file as the title of the page.