Understanding OneDrive and Moodle files

Understanding OneDrive and Moodle files

Jerry Lau發表於
Number of replies: 3

Hello everyone.

We are on:

O/S: Ubuntu 16.04+,  Version: 3.9.4+ (2020061504.01), Release: 01.22.2021, PHP: 7.2.34-21, MySQL5.7.31

Trying to get an understanding about OneDrive.

Once we implement this, my questions are:

1. If a student/user/teacher  is connected to their oneDrive and using the file picker, they "upload" or submit their file (say 5 GB -  a video or drawing file) as an assignment or something to a course, is this file an actual file that is "pushed" to our moodle data directly and stored there or IS IT just a link to the user's OneDrive repository? If not, would it not defeat the purpose of reducing large moodledata directory space?

2. I hope it the previous where it is just a link and not an actually file stored on the moodle data folder. I think so because uploading large files is resource intensive and could time out.

3. If it is a link, what happens if the student or user has left the school, would the link still be active where the instructor can still view their file?

Ideally, we'd like to inform our instructors to backup their course files and save it to their OneDrive repository instead to save space on the moodle server.

Thank you in advance for clarifying and educating me on the 3 questions I have above.

Regards.

Dave.




評比平均分數: -
In reply to Jerry Lau

Re: Understanding OneDrive and Moodle files

Jerry Lau發表於
Anyone?
In reply to Jerry Lau

Re: Understanding OneDrive and Moodle files

Jon Witts發表於
Plugin developers的相片 Testers的相片
Not a One Drive user so cannot be 100% sure on this. We use Google at our school and the Google file repository in Moodle has the option of how you want to connect your files to Moodle. Either convert and upload to the moodledata directory or create a linked file that remains in Google Drive with the sharing automatically set up for you...

It looks like you can do the same with the One Drive repository... OneDrive_repository - read the Access Controlled links section
In reply to Jerry Lau

Re: Understanding OneDrive and Moodle files

Rob Davenport發表於
Hi Jerry,

To answer your questions based on some testing we have done:
  1. If you setup OneDrive with a service account, the user gets 2 options when they choose a file from OneDrive:
    1. Upload the file into Moodle. Your upload file size limit is applied
    2. Access controlled link: The file (behind the scenes) is copied to the Service Account OneDrive, and linked to the Assignment as a submission. This means the student cannot modify it, but the Teacher can read it. HOWEVER our testing shows that it can only handle about 200MB files sizes before the upload process (CURL request) times out and it fails.
  2. See 1.2 above
  3. As the linked file (when using the Access Controlled link) is a copy placed into the Service Account OneDrive, the linked file remains available regardless what happens to the user's OneDrive account, or the original file itself.
We also hit issues about directory path lengths it was using in OneDrive, so if you have a large site with multiple embedded course categories - this could also be an issue you hit.

Cheers, Rob.

評比平均分數:Useful (1)