PAHMA-979: bulletproof uploadMedia again bad filenames, invalid objectnumbers, etc. sort queue items better