Usually it's because the photo is too large. The forum software will try to downsize the photos automatically, but if they are really large it will time out.
If you're trying to upload multiple photos try one at a time instead. If one at a time still gives you the token error then you'll need to reduce the photo size on your computer before uploading.
If that's the case and you need help let me know.