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

eZContentUpload is not providing original file name to custom UploadHandler

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 5.4.9
    • 5.4.8
    • Legacy stack
    • None

    Description

      A custom UploadHandler does not get the originial file name of uploaded files.

      Please see pull request for details:
      https://github.com/ezsystems/ezpublish-legacy/pull/1226/files

      Reproduce the issue:

      Create your own custom UploadHandler and implement the function 'handleFile'.

      Dump the value for $originalFileName in your custom UploadHandler.

      Now use a UI feature which is using the eZContentUpload - for example, upload an image on a relationlist attribute.

      You'll see that the $originalFileName is the file path and not the File Title you specified in the UI.

      Attachments

        Activity

          People

            Unassigned Unassigned
            919b0c62-17af-433a-bab4-b6a5c8c464c0@accounts.ibexa.co Philipp Kamps
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 2 hours
                2h