• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • 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