Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: File handling.

Talk:File handling

From MoodleDocs
Revision as of 14:00, 26 July 2011 by chris collman (talk | contribs) (→‎We need to make progress on documentation: how to link to an existing file)

Update to Moodle 2.0

OK, files are different in M2. If this page is the jump off to file handling, we need references and screen shots of the file picker and some help for people who are used to earlier versions.

Course files starts to help those used to previous version. However, we learn that course files in M2 is the exception, not the rule.:) Perhaps some new pages are necessary for the subject of files in pre and post Moodle 2.0. --Chris collman 01:14, 5 December 2010 (UTC)

First things first

Chris, I am afraid we need more than this. What little information is here is written by experts and that is a mistake. The file picker is confusing of itself, but the basic file handling is just not addressed at all. How do links to a repository work? How can I upload a zip file and unzip it and access those files when I have a course in 1.9.x that contains 365 images without having to recreate every link to every image. People build courses over time and transitioning to M2 is going to take up far more time than they have - just to learn how file handling works. Perhaps we need to start in how we can access the files area, to create a repository, all in simple language. What is here and in the File System Repository page makes it clear that only an Admin has access to that, and if that is the case, then why are people complaining about the pain when they have shot themselves in the foot?--Colin Fraser 23:20, 26 December 2010 (UTC)

The first things first as you stated and I will restate. We need to personally feel comfortable with being a teacher and uploading "private files" for use in any of our courses. Then uploading files that my co teachers of a course can access. Then uploading and accessing files that are available for the site or courses that I am not a teacher but want to use. And of course being a student and uploading a file for a course and perhaps one I can use in more than one course. Just updated my profile at Moodle.org and it occurs to me it is a M2 site. Well I got to put on my snow gear, shovel some more snow and think about this new system--Chris collman 13:18, 29 December 2010 (UTC)

We need to make progress on documentation

Just got through reading a very long thread at http://moodle.org/mod/forum/discuss.php?d=174702 and I am really confuzeled.

However, I will plow on. I am committed to using 2.1 and am fortunate that we repeat the same course on the same server. So it should not be a big deal. I am making darn sure I upped the max file size to 200 MB so I can load up zip files, that previously I would do via the backdoor FTP into moodledirectory.

I think Elena is trying to give tips how to use the same file in multiple locations. I am storing this here for lack of a better place. Humm, maybe this belongs in FAQs?

How to link to an existing image/file

Once you have uploaded your image, you used 2.0 right-in-place upload and uploaded it directly into the Label or Page.

So, now, you will need be“creative” to make it work. Here is what will NOT work.

Take a look at the html code of you resource, you will see that you image source says “draftfile.php”, e.g. draftfile.php/13/user/draft/833634938/
This link is not static, it is generated when you look at the code. Next time you look at code- it will be different, e.g. draftfile.php/13/user/draft/7767458346.
Thus once you copy/paste the code into another resource, it will not work anymore.

Here is what WILL work: Instead you now need to a) add a resource b) in the non-editing mode hoover over the image with a mouse and copy paste that url instead, e.g. h_ttp://moodle.org/pluginfile.php/140/mod_forum/post/766556/bee_2-50.gif c0 then, when you add the new snippet, make sure that you change the location of the image, so it will not be draftfile something, but pluginfile.

This is a good example of when storing files in the Legacy Course Files area and linking to them like in 1.9 is the best solution.Thus, if I would have a need for this, I would enable external linking for the installation and turn on Legacy Course Files. So later I would be able to embed a linked image once, like in 1.9

The above "How to link" idea was written by Elena, shameless edited by Chris from one of many posts Elena made in the above forum thread.--Chris collman 22:00, 26 July 2011 (WST)