Code Monkey home page Code Monkey logo

ufile-sdk-java's People

Contributors

delexxie avatar joshuayin avatar joshuayin-ucloud avatar joydchh avatar solariums avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ufile-sdk-java's Issues

API请教

请问,示例中,有没有增量同步的api ,只同步已经修改过的文件?

大写的文件后缀解析不出来

例如文件: file.pdf.PDF
一样能正常打开

但是MimeTypeUtil.getMimeType(keyName);会解析不出来
`
public static String getMimeType(String fileName) {
JLog.T(TAG, "[file name]:" + fileName);
if (fileName == null || fileName == "" || !fileName.contains("."))
return MIME_TYPE_MAP.get("");

    int lastDot = fileName.lastIndexOf(".");
    if (lastDot > (fileName.length() - 2))
        fileName = "";
    else
        fileName = fileName.substring(lastDot + 1);

    JLog.T(TAG, "[suffix]:" + fileName);
    // 转成小写去MIME_TYPE_MAP匹配
    String res = MIME_TYPE_MAP.get(fileName.toLowerCase(Locale.ROOT));

    return res == null || res.isEmpty() ? MIME_TYPE_MAP.get("") : res;
}

`

文件上传时报错

文件上传时报错,使用的控制台生成的令牌,使用管理工具可以上传,报错如下:
cn.ucloud.ufile.exception.UfileServerException: {"ResponseCode":403,"RetCode":-148658,"ErrMsg":"invalid signature","X-SessionId":"48b70da8-12d9-4609-88cf-3548193810df"}

你好,请教一个问题。

UfileClient.object(OBJECT_AUTHORIZER, config)
.putObject(file, "text/plain")
.nameAs("save as keyName")
.toBucket("upload to which bucket")
请问这里的nameas跟tobucket是要填写什么呢

关于创建外链时的几个问题

  1. 是否能够支持自定义Content-Disposition等响应头?
  2. 是否能够允许在创建外链时另外指定host,而不是使用ObjectConfig.host()
  3. 自定义域名时如何使用https?

MimeTypeUtil 初始化错误

FileUtil.readFileContent(ClassLoader.getSystemResourceAsStream("mime-type.json")) 无法加载到json文件。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.