• Support
  • Share Multiple files at once

Hi. This maybe the wrong location to ask this but can't figure out if this is possible or not.
Using a offline moodlebox & want to share a number of videos from a number of folders from the USB stick of the box.
I'm currently using a 'Folder' Resources block & I can do this, but I have to create each folder & select each file one by one. I also don't want to make a copy of all the files. I want to Create an alias/shortcut to the file.
Does anyone know how to display all the files in a folder from a USB stick without selecting them one by one?
Thanks

    doxendine How about starting with https://moodlebox.net/en/help/using-files-with-the-moodlebox/ then create an ordinary https://docs.moodle.org/en/Folder_resource in the course and "pull" the files from the file picker as in the top screen-shot. You will have the choice between 'Make a copy of the file' and 'Create an alias/shortcut to the file'.

    Again this question only lightly touches MoodleBox. I don't know where it really belongs to, you can start in the General help https://moodle.org/mod/forum/view.php?id=50, the moderators will move it later.

      Ratna
      It will not work if you make a link to an external file that is not copied into the Moodle structure. You must copy the file from the usb drive somewhere into Moodle ... this can be a folder resource, a file resource, a text label with an embedded file and so on. When you did so then you can put a link into a folder.

      For my test I put the video file into a label. From there I can set a link into the folder but not from the external usb drive repository. If you have an external repository which uses links itself (like Google Drive) then you also can set a link.

      doxendine
      Put your stick in a computer and make a zip archive from all files and folders you want to use with the MoodleBox. Then you upload the zip file to a folder in Moodle and you expand the zip file. Now you will have the complete structure of files and folders as you saved it on your computer.

      Thanks. In this situation, It's over a hundred videos in a lot of folders & the zip file would be to large for the Moodlebox. So I need to keep them on the usb stick. It looks like then in this case to add them one by one is the only option.
      Thanks for your help.

        doxendine
        It‘s no problem to upload 500MB or 700MB via usb stick to the MoodleBox. The MoodleBox has an upload limit of 50MB via web upload but not for the repositories usb drive and sftp documents.

        doxendine You are talking about two things:

        1. Serve files from the Moodle in MoodleBox directly from the USB stick.

        For the solution, please re-read my previous answer.

        1. Referencing a whole directory tree from Moodle in one operation

        This is a question to Moodle upstream, moodle.org. As far as I know, you can not link a Folder resource to a directory. The only way of doing it IMHO is what @ralfkrause wrote, i.e. upload the full zip. Yes, that will defeat 1.

        Ratna
        Yes, I did. I copied a mp4 video on my usb stick and I put the stick into the MoodleBox. A user with the roles admin or teacher can see the stick in the file picker as the "usb drive". I set a link in a folder on the frontpage so everybody should play the video. I does not work! I copied the video to the folder and the video could be shown.

        It will not work if you make a link to an external file that is not copied into the Moodle structure. You must copy the file from the usb drive somewhere into Moodle ... this can be a folder resource, a file resource, a text label with an embedded file and so on. When you did so then you can put a link into a folder.

        Editing the linked video again the link is shown as "USB Drive: /Video-480.mp4".
        Editing the linked video from the Moodle resource label the link is "Server files: Site home/test (Label)/Description/Video-480.mp4"

        The first one is not shown but the second one is okay.

        Best regards, Ralf

          ralfkrause "I set a link in a folder on the frontpage so everybody should play the video. I does not work! I copied the video to the folder and the video could be shown." I believe you!

          The explanation is as you wrote, the file must appear once in the repository of Moodle for it to be linked later. The Filesystem repository does not count as one. So the purpose of OP's exercise of serving directly from the USB drive is defeated.

          A work-around would be to mount the USB in the web root of the MoodleBox and put the URL of the video, things like http://moodlebox.home/mountdir/some/path/video.mp4, in the courses.

          10 days later

          Thanks for your help. I ended up coping the zip files to the image & then unzipping.