Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-78

Allow to reference a batch in a document property

    XMLWordPrintable

    Details

    • Tags:
    • Sprint:
      nxfit 8.4.3, nxfit 8.4.5
    • Story Points:
      5

      Description

      Currently referencing files uploaded in a batch when creating / updating a document is tricky. e.g.:

                  for (var uploadedFilesIndex = 0; uploadedFilesIndex < uploadedFiles.blobs.length; uploadedFilesIndex++) {
                      var currentFile = uploadedFiles.blobs[uploadedFilesIndex];
                      propertiesToUpdate['files:files'].push({
                          'file': {
                              'upload-batch': currentFile.blob['upload-batch'],
                              'upload-fileId': currentFile.blob['fileIdx']
                          }
                      });
                  }
      ...
      

      => The JS client should allow referencing a batch directly in a property. e.g.:

      var propertiesToUpdate = {
        'files:files': attachmentsBatch
      };
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: