HiTwo 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
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 };
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 PavlovInfragistics, Inc.