src/main/java/com/qingstor/sdk/upload/UploadManager.java
public void put(File file) throws QSException {

        if (!file.exists() || file.isDirectory())
            throw new QSException("File does not exist or it is a directory.");

        put(file, file.getName(), null, "");
    }
public void put(File file) throws QSException {

        if (!file.exists() || file.isDirectory())
            throw new QSException("File does not exist or it is a directory.");

        put(file, file.getName(), null, "");
    }
Upload a file with a sync request.
@param file file
@throws QSException exception