Git Product home page Git Product logo

java-sdk's People

Contributors

117503445 avatar dependabot[bot] avatar echo249 avatar mekong avatar nodurex avatar wxlfight avatar yejingx avatar yemingm 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  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  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  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  avatar  avatar  avatar  avatar

java-sdk's Issues

下载接口不支持进度回调

上传有SerialUploader 和 ParallelUploader 可以监听进度。
但是“下载”没有相应可以监听的接口。如果使用http下载,那速度,十分感人。。。

获取文件信息与文档描述不符

api:获取文件信息,上面说的是当指定文件不存在时返回null。但是实际上当不存在时会抛出异常:

Caused by: java.io.FileNotFoundException: http://v0.api.upyun.com/xxxxxx/path/to/file
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1872)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
	at main.java.com.UpYun.getText(UpYun.java:906)

因为上传文件会存在覆盖问题,因此需要使用该api来进行文件判定(文档上面是这样写的)。
个人感觉在业务逻辑当中通过异常来进行判断不太优雅,可能使得业务逻辑的异常和真正出现的异常相混淆而出错。建议修复此问题

2 Poinits: 1 - Inputstream not close, 2 - Chinese file name not support

Description:
1. Please close the inputstream when the file uploaded
Now I need upload the file onto the app server directory for temporarily, then upload to upyun.
So we have a scheduled job to clean the temporary files on the app server.
If the inputstream of the uploaded file has not been closed, we couldn't delete it except we stop the app what we don't hope this happen.

2. Please support Chinese file name
When we upload the file which named by chinese, it will promt the messages below.

com.upyun.UpException: {"msg":"signature error","code":40100005,"id":"a0da1d010e78e4ad456abca06434719e"}

Android使用java sdk获取不了空间使用情况

我的代码是

    private long usage;
    private UpYun upYun;

    upYun = new UpYun("...","...","...");
    new Thread(new Runnable() {
        @Override
        public void run() {
            usage = upYun.getBucketUsage();
            Log.i("slz",usage+"");
        }
    }).start();

返回是-1
但是同样的代码在java项目中可以用

API内部的HttpAction方法是否考虑暴露出来?

最近项目要调用视频相关的接口,但UPYUN JAVA API内部并没实现,那内部的HttpAction是否考虑暴露出来给开发者拿来调其它的HTTP接口呢?或者改为protected让开发者继承扩展?。。。。。

4.1.1 maven下载不到

http://central.maven.org/maven2/com/upyun/java-sdk/4.1.1/
中没有4.1.1的jar
../
java-sdk-4.1.1-javadoc.jar 2019-04-10 08:31 232827
java-sdk-4.1.1-javadoc.jar.asc 2019-04-10 08:31 488
java-sdk-4.1.1-javadoc.jar.md5 2019-04-10 08:31 32
java-sdk-4.1.1-javadoc.jar.sha1 2019-04-10 08:31 40
java-sdk-4.1.1-sources.jar 2019-04-10 08:31 47991
java-sdk-4.1.1-sources.jar.asc 2019-04-10 08:31 488
java-sdk-4.1.1-sources.jar.md5 2019-04-10 08:31 32
java-sdk-4.1.1-sources.jar.sha1 2019-04-10 08:31 40
java-sdk-4.1.1.jar.asc 2019-04-10 08:31 488
java-sdk-4.1.1.pom.asc 2019-04-10 08:31 488

图片如何防止重复上传

想要的功能是,已经上传的图片,不要重复上传,直接取上传过路径使用即可。请问这个功能该怎么做?

jetty8 及 jetty9报异常

maven构建项目 jetty7正常 8,9报如下异常
java.util.zip.ZipException: invalid entry size

移除UPYUN的JAR即可,请检查是否有冲突?

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.