Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-25438

Add ability to download files and folders from resources/dropbox into a zip file on the fly.

    XMLWordPrintable

    Details

    • Property addition/change required:
      Yes
    • Test Plan:
      Hide

      -Change properties in server (i.e. setting max file size to 4 MB and total size to 10 MB) to make testing easier:

      content.zip.download.maxindividualfilesize=4194304
      content.zip.download.maxtotalsize=10485760

      -Upload to Resources:

      • One file that exceeds the max individual size. Copy it in a subfolder anywhere.
      • One folder with several files whose sum exceeds the total file size.
      • One folder with a tree of subfolders with files.

      -Use cases to test:

      1 One file selected exceeds the individual file size.
      2 One file inside a selected folder exceeds the individual file size.
      3 One folder is selected and all their subfolders and files inside these subfolders are included in the zip.
      4 One folder selected exceeds the total file size.
      5 Unselecting the case 4's folder and selecting some files inside works if they don't exceed the total file size.
      6 One folder is selected and several files or folders inside its subtree are also selected. The selected files/folders are included only one time in the zip in their correct placement.

      Show
      -Change properties in server (i.e. setting max file size to 4 MB and total size to 10 MB) to make testing easier: content.zip.download.maxindividualfilesize=4194304 content.zip.download.maxtotalsize=10485760 -Upload to Resources: One file that exceeds the max individual size. Copy it in a subfolder anywhere. One folder with several files whose sum exceeds the total file size. One folder with a tree of subfolders with files. -Use cases to test: 1 One file selected exceeds the individual file size. 2 One file inside a selected folder exceeds the individual file size. 3 One folder is selected and all their subfolders and files inside these subfolders are included in the zip. 4 One folder selected exceeds the total file size. 5 Unselecting the case 4's folder and selecting some files inside works if they don't exceed the total file size. 6 One folder is selected and several files or folders inside its subtree are also selected. The selected files/folders are included only one time in the zip in their correct placement.

      Description

      The new functionality added in Sakai 2.9 'Compress to zip archive' SAK-800 has some limitations that could be improved. (i.e.: Students can't download resources content in zip files because they usually don't have permissions to write. If a site has quota on resources, an instructor could not have enough space to be able to create the zip file...).

      It would be great to have a new functionality in resources called 'Download in a .zip file'. This new functionality could add a new button next to the existing ones: 'Remove', 'Move', 'Copy', 'Show', 'Hide' and 'Download in a .zip file'.

      The file created could include the items selected by the user (files, folders...). It should only include files and folders visible for the user doing the action. (i.e.: a student won't be able to download a folder that was hidden by the instructor).

      The zip should be generated on the fly but not stored anywhere in sakai. The new option should not be available in special sites like the admin resources (to avoid performance problems).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  daniel.merino Daniel Merino Echeverría
                  Reporter:
                  jmariano Jose Mariano Lujan
                • Votes:
                  10 Vote for this issue
                  Watchers:
                  17 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code