public Response put(File file, String key, String token, StringMap params,
                        String mime, boolean checkCrc) throws QiniuException {
        checkArgs(key, null, file, token);
        if (mime == null) {
            mime = Client.DefaultMime;
        }
        params = filterParam(params);
        long size = file.length();
        if (size <= configuration.putThreshold) {
            return new FormUploader(client, token, key, file, params, mime, checkCrc, configuration).upload();
        }

        ResumeUploader uploader = new ResumeUploader(client, token, key, file,
                params, mime, recorder, configuration);
        return uploader.upload();
    }
public Response put ( File file , String key , String token , StringMap params , String mime , boolean checkCrc ) throws QiniuException { checkArgs ( key , null , file , token ) ; if ( mime == null ) { mime = Client . DefaultMime ; } params = filterParam ( params ) ; long size = file . length ( ) ; if ( size <= configuration . putThreshold ) { return new FormUploader ( client , token , key , file , params , mime , checkCrc , configuration ) . upload ( ) ; } ResumeUploader uploader = new ResumeUploader ( client , token , key , file , params , mime , recorder , configuration ) ; return uploader . upload ( ) ; }
上传文件

@param file     上传的文件对象
@param key      上传文件保存的文件名
@param token    上传凭证
@param mime     指定文件mimetype
@param checkCrc 是否验证crc32