Moodle
  1. Moodle
  2. MDL-29581

File upload doesn't work if maxbytes set to 'Server Limit'

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: Files API
    • Labels:
      None
    • Database:
      MySQL
    • Workaround:
      Hide

      Workaround is to manually set maxbytes, but this doesn't work since we need maxbytes set to Server Limit for large files.

      Show
      Workaround is to manually set maxbytes, but this doesn't work since we need maxbytes set to Server Limit for large files.
    • Affected Branches:
      MOODLE_21_STABLE
    • Rank:
      357

      Description

      The mobile app will not upload content if the maxbytes setting in the Site Policies is set to 'Server Limit'.

      I have upload_max_filesize = 1024M, and post_max_size = 1024M. Setting maxbytes to Server Limit allows us to upload very large files or large course backups.

      With that set, I try to upload a recording, and it records, and I click Send and it says "This audio file is 92.3 KB" and click upload. I get the message "This file is bigger than the maximum size".

      Once I set the maxbytes setting manually, to say, 10 MB, it allows me to upload the file correctly.

        Activity

        Ryan Smith created issue -
        Jérôme Mouneyrac made changes -
        Field Original Value New Value
        Priority Minor [ 4 ] Critical [ 2 ]
        Assignee Jerome Mouneyrac [ jerome ] moodle.com [ moodle.com ]
        Jérôme Mouneyrac made changes -
        Project Moodle for Mobiles [ 10070 ] Moodle [ 10011 ]
        Key MOBILE-125 MDL-29581
        Workflow jira [ 100477 ] MDL Full Workflow [ 100481 ]
        Affects Version/s 2.1.1 [ 10750 ]
        Affects Version/s 1.0.2 [ 11151 ]
        Component/s Files API [ 10305 ]
        Component/s iPhone [ 10910 ]
        Michael de Raadt made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee moodle.com [ moodle.com ]
        Resolution Won't Fix [ 2 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: