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

Can't upload large binary files using v2 admin UI

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • Customer request, 2.1.0-beta1
    • 2.0.2
    • Field types
    • None
    • PHP 7.1.11-0ubuntu0.17.10.1
      memory_limit=-1

    Description

      Steps to reproduce:

      1. Create new Media -> File
      2. Select large binary file (tested with ~200MB .txt file)
      3. Try to publish content

      You will get a 500 error (Status Code header contains 400) and exception:

      Argument 'localFile' is invalid: file does not exist or is unreadable: /var/www/v21/web
      

      For small files (tested with 1MB .pdf) everything works as expected.

      Additional information:
      It seems that the problem with large files starts here:
      https://github.com/ezsystems/ezplatform-admin-ui/blob/master/src/bundle/Controller/ContentEditController.php#L97
      so probably comes from Symfony itself.

      Please take a look at the screenshots from the debugger.
      For the small file, you can see correct inputUri value, file is in /tmp/ directory as it should, also, fileSize value is correct.
      For the large file, inputUri leads to application web directory, and fileSize is 0.

      Attachments

        1. large.png
          large.png
          124 kB
        2. small.png
          small.png
          125 kB

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: