Bulk upload images

From Bradnor
Jump to navigation Jump to search

⇐ Wiki maintenance

Placing scans on wiki server
Images need to be uniquely named. To upload, options include..
  • Scan images using 'Scan to Network folder' option on printer, selecting 'Bradnor wiki' as destination
  • Copy to wiki server using SFTP, e.g. to folder ~/scans


copy images into wiki run
  • run sudo php /var/lib/mediawiki/maintenance/importImages.php ~/scans
or
  • run ./updatewikiimages from user ch home directory. Images need to be in ~/mediawiki/images
alternatively
  • run ./imageupload <filename> [sourcedirectory]> where sourcedirectory is images, scans or pdfs. The file filename is copied and uploaded from the corresponding directory under /share


to fix ownerships, if necessary, run
  • sudo chown -R www-data:www-data /var/lib/mediawiki//images/