File upload API tests