Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24313

nuxeo-dropzone cannot be used to upload files on property other than files:files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 8.10, 9.10
    • Fix Version/s: 9.10-HF02, 10.1
    • Component/s: Web UI
    • Release Notes Summary:
      nuxeo-dropzone can be used to upload files on property other than files:files
    • Release Notes Description:
      Hide

      Adds ability for <nuxeo-dropzone> to be used with any blob propriety.

      Show
      Adds ability for <nuxeo-dropzone> to be used with any blob propriety.
    • Tags:
    • Sprint:
      nxGang Sprint 10.1.5
    • Story Points:
      2

      Description

      Uploading files to a blob multivalued property is done using a `nuxeo-dropzone` element.
      nuxeo-document-attachments is using this element to
      attach files to files:files XPATH: https://github.com/nuxeo/nuxeo-web-ui/blob/master/elements/nuxeo-document-attachments/nuxeo-document-attachments.html

      Issue is: even though `nuxeo-dropzone` defines a `xpath` property for defining where to attach files, this element is calling the `BlobHolder.AttachOnCurrentDocument` operation, which is not using xpath param and can only attach files to `files` schema: https://github.com/nuxeo/nuxeo-web-ui/blob/master/elements/nuxeo-dropzone/nuxeo-dropzone.html#L117

      We should instead use the `Blob.AttachOnDocument` operation which defines a xpath param.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h