Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-861

Dropzone without a file extension

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Detail
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.4.2, 3.0.0
    • Component/s: Upload
    • Release Notes Summary:
      Dropzone is usable with files without file extension.
    • Browser:
    • Sprint:
      nxGang Sprint 11.1.3
    • Story Points:
      1

      Description

      I am trying to upload a tensorflow record which has no file extension or mimetype.  The dropzone errors which:

      nuxeo-app.html:27990 Uncaught TypeError: Cannot read property '0' of null
          at DefaultUploadProvider.accepts (nuxeo-app.html:27990)
      

      It looks to be:

      const fileType = file.name.match(/\.[^.]*$/)[0];
      

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 minutes
                  5m