Uploading large files and folders

Uploading large files and folders

by Martin Jowett -
Number of replies: 18

I have mastered uploading smaller files through moodle, but now need to uplad some larger groups of files and folders including a SCORM package.

I will need to do this through ftp but where to ?

I have set up ftp and added moodle modules to the mods folder but cant find the folder where the 'files' for a particular course are stored.

Average of ratings: -
In reply to Martin Jowett

Re: Uploading large files and folders

by Nadja Steffes -
Well, there should be folder called "moodledata". It's a different one than folder "moodle".
In reply to Nadja Steffes

Re: Uploading large files and folders

by Martin Jowett -

Thanks

I had looked there but the subfolder I checked was empty, one of the yet to be populated courses I have been playing with, I should have looked further.

In reply to Martin Jowett

Re: Uploading large files and folders

by Mary Cooch (personal account) -
Picture of Documentation writers Picture of Testers

Hi Martin ;)

If you go to the course where you want the SCORM and then just upload some random document -then when you go back to moodledata you'll see a numbered folder which is the folder for that course. It will have been created by  your uploading something in the course. Then ftp your SCORM stuff directly into there if it's too big to do within Moodle.

In reply to Martin Jowett

Re: Uploading large files and folders

by Ron Meske -
Hi Martin,

We do something similar to what Mary suggested.

Our rule of thumb has been if a SCORM package is larger then 10 MBs we break up the zip file into smaller chunks. The size depends on your particular configuration, so you may need smaller sizes or you may be able to use larger sizes.

We upload the zip file containing the imsmanifest and start files first and "Choose" it, allowing Moodle to create the folder structure. Then we upload the other parts of the course to the appropriate folders and unzip them manually.

Ron
In reply to Ron Meske

Re: Uploading large files and folders

by Martin Jowett -

It is the manual unzipping that is causing the problem.

Martin

In reply to Martin Jowett

Re: Uploading large files and folders

by Ron Meske -
Here is an explanation of the process that you must go through for the correct directory structure to be created for a SCORM activity and to add additional files.

First, when a course is created it is given an ID number (say 2) and a corresponding directory is created in the moddledata folder.

For example: moodledata/2

When you add a SCORM activity, it is assigned a "scoid" (say 3). To create the SCORM directories you must upload a valid SCORM package(zip file), chose it and then "Save" the activity. At this point Moodle creates moddata/scorm/ and then the "scoid" directories.

For example: moodledata/2/moddata/scorm/3

Inside the "scoid" directory ("3") the contents of the SCORM package are unzipped. At this point you can upload additional files for the SCORM activity either using ftp or by editting the SCORM activity and using Moodle to upload additional files.

If you upload additional zip files you will want to upload them to the "scoid" directory and then unzip them from there. The additional zip files must have the same structure as the original SCORM package for this to work properly.

You also have the option of uploading additional files without zipping them. In this case, ftp is the best choice.

Let me know if that helps.

Ron





In reply to Ron Meske

Re: Uploading large files and folders

by Greg Frichette -
Brilliant! Here's a link to a quick video that shows how to trick the php script on a server that puts restrictions in place around file size.

For my example, I had four huge videos that need to play in an articulate module. Here's my work-a-round.

Enjoy!

In reply to Greg Frichette

Re: Uploading large files and folders

by Toni Roberts -
Hello Greg,

The URL above doesn't work. Do you have an updated link?

Thanks!

Anthony (Toni)
In reply to Ron Meske

Re: Uploading large files and folders

by Victor P -

I'm sorry but I cannot find the moddata folder. There is an instrution to upload the zip file this is my moodle-tree-files and folders.

 

URL/moodle
admin
auth
backup
blocks
blog
calendar
cohort
comment
course
enrol
error
files
filter
grade
group
install
iplookup
lang
lib
local
login
message
mnet
mod
my
notes
pix
plagiarism
portfolio
question
rating
repository
rss
search
tag
theme
uploaddata
user
userpix
webservice
_private

In reply to Victor P

Re: Uploading large files and folders

by G. M. -

In your case, it is named "uploaddata".

In reply to G. M.

Re: Uploading large files and folders

by Victor P -

Is this the place where I can unload a scorm (zip) file? As you probably know, many people cannot upload a scorm file directly from moodle (I'm running a later version of moodle). When I submit my scorm file, it goes to a blank page. I am assuming that is for the size of the file. However, I have unlimited access to upload any files, so I am confused why this is happening. If you have any thoughts and instructions, I appreciate all your help.

 

In reply to Victor P

Re: Uploading large files and folders

by Victor P -
FROM: No Progress after Choosing Scorm content
by Kelly Turner - Wednesday, 20 July 2011, 01:16 AM
 

I created a scorm zip file with Camtasia v7.1

Scorm File Size 56MB

I'm using Moodle v.1.9.11

I've created a new course and I'm adding a Scorm/AICC Activity.

I'm able to upload the zip file to Moodle and click 'choose' for the zip file.  I type in a name for the Scorm/AICC Activity,  and I set the following: Unlimited Attempts, Open in a New Window, Resize window, Scroll Window, Student skip content structure always, Course structure display Hidden.

When I click on Save and return to course it just sits there.  I don't get an error message or anything.  Just a plain while screen with the following in the address bar - http://<MyWebSite.Com/course/modedit.php

I've tried to do this with Internet Explore, Chrome and Firefox and the results are the same. 

This is not the first time I've uploaded Scorm/AICC content.  I've also had larger Scorm/AICC content files in the past without this problem. 

Please help. 

In reply to Victor P

Re: Uploading large files and folders

by Brian Hall -

Hey Kelly,

Are you sure you want to upload such a large file over the internet?

Do you have log in /admin access to the server? If so you can upload massive files using an ftp client). However you need to know the course #.

To get this :

If using linux (as server)      

data(or wherever you installed moodle data files)->files->moodle->data. 

From there you will see a list of numbers and folders. Each number basically represents a different course and the course info is located in the particular folder. Select the particular course.

To find out the number of a course; log into moodle normally then select the particular course. Then go to the "files" link. In the web browser you will then see "<IP Address"/learning/files/index.php?id=#"  the "#" represents your course number. 

 

Hope this helps.

 

Brian

In reply to Brian Hall

Re: Uploading large files and folders

by Victor P -

So,

this is my tree-files but it is under the folder called "uploaddata"


cache
diag
filedir
35
10
37
3d
3e
3f
42
87
c1
d4
da
lang
temp
backup
forms
scormimport
typo3temp
cs
zip
trashdir

In reply to Brian Hall

Re: Uploading large files and folders

by Victor P -

sorry, it's not working...I also tried

this

 http://whs.moodledo.co.uk/file.php/3957/How_to_set_up_a_SCORM_Package_on_Moodle.pdf I cannot unzip the file. I right click the zip-file and none....the other options in the pull down menu works but the unzip none...any ideas.....

 

 

 

 

In reply to Victor P

Re: Uploading large files and folders

by G. M. -

The PDF file you mentioned can only be seen by registered users.

What Moodle version are you using?

I'm not sure about your current problem status. Were you able to upload the scorm zip file into the correct course folder? Are you unable to create the scorm activity in the course?

How big is the scorm file and what scorm version is it?

http://docs.moodle.org/20/en/SCORM_FAQ

In reply to Martin Jowett

Re: Uploading large files and folders

by Venugopal Maddukuri -

In Moodle 2.x, on a dedicated Debian Linux Server


The way I like to upload large files is to use the Repository Plugin. Enable "Filesystem" module. In the "Settings" screen for this plugin, we can create a Repository pointing to a filesystem upload directory.

Create a directory under the moodledata/repository directory per course.

This directory should be owned and readable by the webserver user ( in LINUX - Debian 5.x: www-data)

Now use FTP or better SFTP to upload any files to this directory. You may need to enable group read-write permissions for the directory, so that other users can write to this directory.

Example: directory: /var/moodledata/repository/mynewcourse

As root user: 

# groupadd mynewcourse

# chgrp mynewcourse /var/moodledata/repository/mynewcourse

# chmod g+rwx /var/moodledata/repository/mynewcourse

# adduser uploader

# usermod -a -G mynewcourse uploader 

In the moodle web interface, when adding any resources, the file chooser now shows the Filesystem Repository that we created.

Average of ratings: Useful (1)
In reply to Venugopal Maddukuri

Re: Uploading large files and folders

by Balu Ertl -

Thank you Venugopal for your soultion, it helped me a lot!

From now not only yours favourite method, but mine too smile