Fixed error on unauthenticated user upload.