Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29119

Display proper validation error message when non-image file uploaded in image FieldType

    XMLWordPrintable

    Details

      Description

      Steps to reproduce

      1. Go to Media -> Images
      2. Create the new image
      3. Fill required fields
      4. Select non-image file, for instance, a .php file 1
      5. Try to publish content

      Result
      After the first click on publish, page will reload but nothing more happens. There is no error message.
      After the second click on Publish, content will be saved without any file.

      Excepted result
      You should see some validation error on the front-end.

      Note:
      This is not a security issue. Finally, the non-image file won't be saved to the storage directory. It exists in the /tmp directory for the short time only.

      1 - probably you need to change filetype setting in your's browser file picker window. See screenshots in the attachment.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            kamil.madejski@ez.no Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: