• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Upload multiple images with app

waltlam

Chevereto Member
Hello Rodolfo,

I am trying to upload multiple images from my mobile app to the server with cordova plugin file transfer.

It is working with single image upload, but when I try to upload multiple images at once (in a for loop), the server saves the last selected image and respond with --> http_status : 400 , "message”: "Duplicated upload”

Below is my code:
Code:
$scope.uploadImages = function () {
        var success = function (response) {
            console.dir(JSON.stringify(response));
        };

        var fail = function (error) {
            console.dir(JSON.stringify(error));
        };

        for (var i = 0; i < $scope.images.length; i++) {
            var options = new FileUploadOptions();
            options.fileKey = "source";
            options.mimeType = "image/png";

            var uploader = new FileTransfer();
            console.log("Uploading :" + $scope.images[i]);
            uploader.upload($scope.images[i], encodeURI(REQUEST_URL + "?key=" + CHEVERETO_API_KEY), success, fail, options);
        };
    };

Any solution to this? Thanks
 
Duplicated upload is triggered when the image md5 matches the image table in a given time range. Most likely you are re-uploading previously uploaded images because you are testing the API.
 
Duplicated upload is triggered when the image md5 matches the image table in a given time range. Most likely you are re-uploading previously uploaded images because you are testing the API.

What is the time range value, and if outside of that value will duplicates not be recognized?
 
Time range is one day. I'm seeing that there are some issues with that functionality, I will run some test for the next version.
 
Back
Top