How to upload a video (any) file to a remote repository (from the repository UI)

Re: How to upload a video (any) file to a remote repository (from the repository UI)

by Frédéric Massart ⭐ -
Number of replies: 0
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi Nadak,

as far as I know the repositories are used to retrieve information not to upload any content. Another area which provides this kind of functionnality is portfolio.

If you are willing to allow your users to upload a video directly from the filepicker to the remote server, you might want to have a look at the upload repository. Perhaps uploading the content, saving it in the filearea and then pushing it to the media server would work.

Although, I am not entirely convinced that this is the proper way of implementing such a feature. You could maybe work out a local plugin which grabs a video through a moodle_form and then pushed it. You'll probably still have to use the filearea for local storage (temporary or not).

Let us know how it goes!

Fred

Average of ratings: Useful (1)