test file upload (method = put).