Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-647

File uploads doesn't detect when I file is not uploaded due to a quota limit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2
    • Component/s: Upload add-on
    • Labels:
    • Testing Instructions:
      Hide

      Please notice you need to test this in Moodle 2.9 or 3.0 since upload to 3.1 is temporarily disabled.

      1. Configure your Moodle site to use a small max file size
        • Site administration ▶︎ Security ▶︎ Site policies ▶︎ Maximum uploaded file size
      2. Configure your Moodle site to use a small userquota.
        • Site administration ▶︎ Security ▶︎ Site policies ▶︎ User quota
      3. Now try to upload a file higher than the max file size using the app. It doesn't matter the option: album, camera, file, shared file, etc. Check that you get an error saying that the file size is higher than the limit.
      4. Now try to upload a file with less size than the limit. Check that the file is successfully uploaded.
      5. Now upload files until you reach the user quota. Try to upload a new file using the app that makes you surpass the quota. Check that an error is returned saying that you reached the quota.
      Show
      Please notice you need to test this in Moodle 2.9 or 3.0 since upload to 3.1 is temporarily disabled. Configure your Moodle site to use a small max file size Site administration ▶︎ Security ▶︎ Site policies ▶︎ Maximum uploaded file size Configure your Moodle site to use a small userquota. Site administration ▶︎ Security ▶︎ Site policies ▶︎ User quota Now try to upload a file higher than the max file size using the app. It doesn't matter the option: album, camera, file, shared file, etc. Check that you get an error saying that the file size is higher than the limit. Now try to upload a file with less size than the limit. Check that the file is successfully uploaded. Now upload files until you reach the user quota. Try to upload a new file using the app that makes you surpass the quota. Check that an error is returned saying that you reached the quota.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Sprint:
      Moodle Mobile 3.1.2

      Description

      See https://moodle.org/mod/forum/post.php?reply=1151592 for more information

      We need a way to detect when the quota is exceeded preferably before the file upload

      We should implement a Web Service for returning the user environment settings so we can avoid this type of errors

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Pau Ferrer
              Integrator:
              Juan Leyva
              Tester:
              Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                27/Jul/16

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours Time Not Required
                  3h