File Size of Course?

21 views
Skip to first unread message

Nathan Lounds

unread,
Aug 13, 2014, 5:06:48 PM8/13/14
to valenc...@googlegroups.com, Tory Sawyer
We would like to calculate the size of a course, well, actually the size of the file generated by doing a course export.  There is a file size limit for import, so we want to direct people to a different action if their course is too large.

Anybody have any thoughts about this?  If I wanted to try to go about this, how might I get started?

Thanks!

Desire2Learn Staff: Viktor

unread,
Aug 14, 2014, 7:00:58 PM8/14/14
to valenc...@googlegroups.com
Hey Nathan,

There's no API call that you can use to gather the size a course would require on export without actually exporting it; I take it that selecting exemplar courses already existing in your LMS, exporting them, and then using those file-sizes as general guidelines, is not what you're looking for?

--
Viktor

Nathan Lounds

unread,
Aug 15, 2014, 10:14:01 AM8/15/14
to valenc...@googlegroups.com
Thanks for the info, Viktor.  We want to make our large course copy tool responsive to the size of the course.  We'd like to be able to tell users to use the regular methods if there course is small enough.  But it doesn't sound like that is possible, at least not using Valence.

Desire2Learn Staff: Viktor

unread,
Aug 18, 2014, 12:43:10 PM8/18/14
to valenc...@googlegroups.com
I suspect you could make a really rough evaluation by traversing the content tree for the course to copy, and finding the number of content topic nodes that are of "type file" topic (with uploaded file data), rather than the number that are simply link type topics. You could also do simple parsing of all the content topics that are URLs that end in some extension other than HTML, and are thus assumed to be binary data, and most probably larger than simple HTML content. This might not at all be accurate, but it might be a useful rough filter.
Reply all
Reply to author
Forward
0 new messages