Thread:Ironwestie/@comment-46026608-20200609030519/@comment-5754239-20200609173516

I'm not 100% sure because I haven't encountered this problem before, but I'm guessing it's related to the tokens that MediaWiki software uses to perform actions. I'd venture your "invalid token" error is likely your upload action timing out. Tokens expire for security reasons, so you need to perform your actions before they expire.