Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
815
All uploaded files.
posted

Hi
Two questions hopefully someone can help with...
1.    In a multiple file upload scenario how can we tell when all files have been uploaded?
2.    Where can we find detailed information on how to interpret the properties of  getFileInfoData?

Many thanks

  • 23953
    Suggested Answer
    Offline posted

    Hi,

    In this forum thread is described how to tell when all files have been uploaded.

    Here is the object literal returned from the getFileInfoData method:

    var fileInfoData = {

    // Id's of the files pending for uploading, when maxSimultaneousFilesUploads is reached.

    pendingQueueIDs: [], 

    // Id's of the files currently uploading.

    uploadingIDs: [], 

    // In multifile upload scenario batch holds the form ids to be initially submitted for upload.

    batch: [], 

    // File related information with format:

    // fileInfo: {path:"", key: "", sizeBytes: 0, uploadedBytes: 0, status: self._const.status.NotStarted, checksNoSuchFile: 0}

    filesInfo: [],

    // Next is progress bar related information

    // Number of uploading files

    countUploadingFiles: 0,

    // Number of all files

    countTotalFiles: 0,

    // Uploaded file size

    fileSizeUploaded: 0,

    // Total file size

    fileSizeTotal: 0

    };

    In the Progress Information sample you can see how getFileInfoData is used.

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc.