Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-8111

[Image picker] An error 400 occurs when user upload a file with not allowed extension

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 4.6.x-dev, 4.6.3
    • None

    Description

      Preconditions:

      • Added CT with image asset field type

      Steps to reproduce

      1. Log in to back office.
      2. Go to Content / Content structure.
      3. Select 'Ibexa Platform' content.
      4. Switch to 'Sub-items' tab.
      5. Click on 'Upload' button.
      6. Select a file with not allowed extension e.g. .html

      Actual result:

      An error 400 bad request occurs.

      {_fieldTypeId: 192, errors: [{type: "id", message: "A valid image file is required."}]}errors: [{type: "id", message: "A valid image file is required."}]0: {type: "id", message: "A valid image file is required."}message: "A valid image file is required."type: "id"_fieldTypeId: 192

      Expected result:

      No exception occurs, User receives information that uploaded file extension is not allowed for such CT.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              bogdan.mazur@ibexa.co Bogdan Mazur
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: