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

Files uploaded from Google Drive (Android) have an incorrect size (4 bytes)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.2
    • Fix Version/s: 3.9.0
    • Component/s: Others
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested both in Android and iOS.

      Upload local files

      1. Install the app in the device.
      2. Login in a site that allows uploading really big files (e.g. master site allows 250MB).
      3. Go to somewhere where you can upload big files (e.g. private files as admin).
      4. Click to upload a file and select the option "File".
      5. Select a file in the device, not in Google Drive. Check that the file is successfully uploaded, it has the right size and you can download it and open correctly.

      Google Drive

      1. Install the app in an Android 6+ device.
      2. Login in a site that allows uploading really big files (e.g. master site allows 250MB).
      3. Go to somewhere where you can upload big files (e.g. private files as admin).
      4. Click to upload a file and select the option "File".
      5. In the file picker, go to Google Drive and select a file of less than 10MB. Check that the file is successfully uploaded, it has the right size and you can download it and open correctly.
      6. Click to upload another file and now select a file bigger than 100MB. Check that the file is successfully uploaded, it has the right size and you can download it and open correctly.
      Show
      This issue only needs to be tested both in Android and iOS. Upload local files Install the app in the device. Login in a site that allows uploading really big files (e.g. master site allows 250MB). Go to somewhere where you can upload big files (e.g. private files as admin). Click to upload a file and select the option "File". Select a file in the device, not in Google Drive. Check that the file is successfully uploaded, it has the right size and you can download it and open correctly. Google Drive Install the app in an Android 6+ device. Login in a site that allows uploading really big files (e.g. master site allows 250MB). Go to somewhere where you can upload big files (e.g. private files as admin). Click to upload a file and select the option "File". In the file picker, go to Google Drive and select a file of less than 10MB. Check that the file is successfully uploaded, it has the right size and you can download it and open correctly. Click to upload another file and now select a file bigger than 100MB. Check that the file is successfully uploaded, it has the right size and you can download it and open correctly.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.9.0

      Description

      I am a user of the Moodle app (version 3.7.2 for android) for
      my university's courses. During this year, I was uploading my assigments in
      the college's web, but from the mobile phone (since I work with Google
      Drive and Google Docs to do them) and I did not have any problem. This
      month, I realize I could have the Moodle app and I downloaded it. I think
      the app is much better than see the moodle in Chrome, but when I upload my
      assigments (.docx files), the files get "broken" and my teachers cannot
      download them.
      I realize that the files' weight drop drastically when I upload them to the
      app form google drive (for example, form 100 kb to 2 bytes, or so), but I
      cannot understand the why I would like to know if you could help me to
      solve this problem since I really liked the app.

       

      How to reproduce:

      1. Go to a place where you can upload files (e.g. private files).
      2. Click to add a new file.
      3. Select the option "Files".
      4. Select Google Drive (this picker is native, so the Google Drive option can be in a different place depending on the device).
      5. Pick any file from Google Drive. Check that the file is uploaded with a really low size (e.g. 4 bytes).

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            isabelrenedo Isabel Renedo Rouco
            Peer reviewer:
            Pau Ferrer
            Integrator:
            Juan Leyva
            Tester:
            Isabel Renedo Rouco
            Participants:
            Component watchers:
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              26/Jun/20