public BinaryUploadRequest setFileToUpload ( String path ) throws FileNotFoundException { params . files . clear ( ) ; params . files . add ( new UploadFile ( path ) ) ; return this ; }
Sets the file used as raw body of the upload request .