Uploading the media files from the GLAM to Wikimedia Commons will make it possible to start using the files in the different Wikimedia projects.
611 image files on the original external hard drive.
Uploading the media files from the GLAM to Wikimedia Commons will make it possible to start using the files in the different Wikimedia projects.
611 image files on the original external hard drive.
Testupload of 10 images:
Computer: Mac OS X Macbook Air
Prepuload script run :
python /Users/mos/anaconda3/lib/python3.6/site-packages/batchupload/prepUpload.py -in_path:/Users/mos/Documents/10_example_images_cypern -out_path:/Users/mos/Documents/10_example_images_cypern_renamed -data_path:./SMVK-Cypern_2017-02_wikiformat_data.json
Upload script:
` python /Users/mos/anaconda3/lib/python3.6/site-packages/batchupload/uploader.py -in_path:/Users/mos/Documents/10_example_images_cypern_renamed/ -confirm
Error found on all uploaded images:
Error in template * unknown parameter name (Template:Photograph): 'objects history'
Solution:
search and replace "objects history" with "object history" in SMVK-Cypern_2017-02_wikiformat_data.json
Full upload of all images:
Computer: Mac OS X Macbook Air. If run on work Linux computer, replace /Users/ with /home/
Run in Dropbox/wmse/SMVK/SMVK-Cypern_2017-01which is also the repo location.
python /Users/mos/anaconda3/lib/python3.6/site-packages/batchupload/prepUpload.py -in_path:/Users/mos/Cypern -out_path:/Users/mos/Cypern_renamed -data_path:./SMVK-Cypern_2017-02_wikiformat_data.json `
Full upload script:
python /Users/mos/anaconda3/lib/python3.6/site-packages/batchupload/uploader.py -in_path:/Users/mos/Cypern_renamed/ -confirm
588 images uploaded on first try.
Re-run using:
python /Users/mos/anaconda3/lib/python3.6/site-packages/batchupload/uploader.py -in_path:/Users/mos/Cypern_renamed/Uploaded_errors/ -confirm -nochunk
604 totally uploaded after second upload in /Uploaded_errors/
The 11 remaining files generated warnings that the files already exists on Commons, see paste.
Since the filenames are the same I would guess that they were actually uploaded as part of the same run. So if 10-11 images are missing then it must be some others.
There were 611 image files on the external hard drive and 614 rows in the metadata document. When I uploaded the 10 first auto-uploaded images I _copied_ the image files, instead of moved them, so they should raise a warning each of them.
So there are 611-604=7 images unaccounted for. Not a biggie but do we know why they were not uploaded? Were there any images that didn't get renamed?