I've noticed the importImages.php enables one to upload images from a local directory. I would like to do this for a pdf instead of an image and importImages.php doesn't seem to work with the .pdf extension.
Thank you
I've noticed the importImages.php enables one to upload images from a local directory. I would like to do this for a pdf instead of an image and importImages.php doesn't seem to work with the .pdf extension.
Thank you
What error do you get when you try uploading a file with this script?
Here is the source code: https://github.com/wikimedia/mediawiki/blob/master/maintenance/importImages.php
I had commented out $wgFileExtensions in the LocalSettings.php file which was set to 'pdf'. I had alread uploaded pdf files before, so I didn't think this was the source of the problem. Now it works and yes I know there is the --extension that I could have used. Silly mistake on my part.