"Legacy course files" does not work as expected/intended

"Legacy course files" does not work as expected/intended

by Alejo Becerra Diaz -
Number of replies: 4
When I read the discussions during Moodle 2 development's process about the new files' management approach, via repositories instead of a "course files" folder, it was stated (and I agree) that the old system has two main advantages from a practical point of view:
  • Being able to upload files first, link files later, using that folder as a "file system"
  • Being able to put files inside that folder by direct access to it (local folder, FTP...), giving the fact that each course's "course files" area was a physical folder inside the "moodledata" directory. Moreover, giving the fact that the files inside it could be directly linked from Moodle, edited files could be replaced by only replacing them physically inside the "course files" folder (via upload or via direct access)
One of the conclusions was to let site admins enable "Legacy course files", to re-enable the old behaviour. But "legacy course files" only enables half of the advantages of the old approach: the first point stated. The second one is not reenabled by enabling "legacy course files", because files are still stored as a "file pool of blobs", not directly as files in a physical directory where you can upload new ones to be directly linked later or update existing ones.
Is is argued in the docs that this can be replaced by using the "filesystem" repository, and putting files into one instance's folder via direct access. This approach has 2 main disadvantages, one covered in the docs, but not the other:
  • Linked files are not automatically updated if files are updated in the folder, because there are not linked directly
  • You can put files in the folder, BUT YOU CAN'T GET FILES INTO THE COURSE BIGGER THAN THE UPLOAD LIMIT, giving the fact that, when you add the files from the instance upload limits are checked at that time (a bug or bad design? maybe file limits only should be checked when using the "upload a file" repository?)
Both absences make files management a lot more cumbersome for admins and teachers, and the second one make almost impossible to really put some resources inside Moodle.
My comments are:
  • Is this the behaviour intended, or "Legacy course files" should really work 100% as "course files" in 1.9.x (so the present behavior is a bug)
  • If this is the intended behavior, "legacy" is quite misleading. When I see the word "legacy" I think in "trying to support the old system as far as possible" not "trying to superficially resemble the old system". I think also that this behavior should be made very clear in the docs (what part of "legacy course files" works as "course files" in 1.9.x and what part doesn't)
  • What is the new suggested procedure to getting big files inside Moodle?
Greetings.
Average of ratings: -
In reply to Alejo Becerra Diaz

Re: "Legacy course files" does not work as expected/intended

by Tim Williams -
Picture of Plugin developers
You might find my new Course Files Area Repository and Repository File Manager Block useful. They attempt to put back into Moodle 2.x as closely as possible the 1.9.x course files functionality which everybody is used to.
In reply to Tim Williams

Re: "Legacy course files" does not work as expected/intended

by Ken Task -
Picture of Particularly helpful Moodlers

Thanks, Tim.  Where can one find the new Course Files Area Repository and Repository File Manager Block?  Sounds like two add-ons.  URL's please!

In reply to Tim Williams

Re: "Legacy course files" does not work as expected/intended

by Alejo Becerra Diaz -

Hello.

Thanks for your response (it is sad to confirm that discussing crucial issues about repositories is no priority for Moodle developers). I read about your contributions, and they seem very interesting (this is the way Legacy Course Files should work, of course). But I feel uneasy to leave such a fundamental issue to a third party contribution (as great as it seems to be, and I congratulate you).

I'll test them when I have some spare time, but one question in the meantime: linked and/or attached files are automatically updated if the file is overwritten, as in Moodle 1.9, or they should be re-linked/re-attached as with most of the integrated repositories?

Greetings.

In reply to Tim Williams

Re: "Legacy course files" does not work as expected/intended

by michael reynolds -

Tim, I installed the course files repository and the repository block. When I try to access the block I get the error message...

[an error occurred while processing this directive]

any ideas?