This support forum is no longer in use. Please use the Cloudinary Community at to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Upload large files as chunk upload from android SDK


1 comment

  • Avatar
    Tamara Yulevich


    There is a `uploadLarge` method for Android which is similar to the Java upload Large. You can see a test sample here:
    Make sure to pass resource_type=video when testing it on a video.

    The following code is an example of a way to upload a video in chunks:

    public String uploadVideoCloudinary(
    @NotNull RecordingUpload recordingUpload,
    @NotNull String objectKey
    ) {
    return MediaManager.get().upload(recordingUpload.getRecordFilename())
    .policy(new UploadPolicy.Builder()
    .backoffCriteria(60000, UploadPolicy.BackoffPolicy.EXPONENTIAL)
    .option("resource_type", "video")
    .option("folder", objectKey)
    .option("public_id", String.valueOf(recordingUpload.getId()))
    .option("overwrite", true)
    .option("connect_timeout", 600000)
    .option("chunk_size", 6000000) 

    Hope this helps.



    Comment actions Permalink

Post is closed for comments.