Forum LAMS for Tech-Heads - General Forum: Remaining junk in LAMS zip files


 
You may request notification for Remaining junk in LAMS zip files.
Search: 

1: Remaining junk in LAMS zip files
02/10/11 11:35 AM
[ Reply | Forward ]
I just tried to upload to this forum a LAMS sequence with only a survey. File size was 28MB, i.e. lams_ldcontent_xxxx included still multimedia assets, but there is none in the sequence. E.g. Media has:
-rw-rw-r-- 1 schneide tecfa 22572651 2011-02-10 18:16 pates.flv
-rw-rw-r-- 1 schneide tecfa 2870 2011-02-10 18:16 patess.swf
-rw-rw-r-- 1 schneide tecfa 2868 2011-02-10 18:16 riz_1.swf
-rw-rw-r-- 1 schneide tecfa 6360661 2011-02-10 18:16 riz.flv
-rw-rw-r-- 1 schneide tecfa 2868 2011-02-10 18:16 riz.swf


Shouldn't there be some sort of purging while saving or probably (if undo is important) as an option ?

Posted by Daniel Schneider

2: Re: Remaining junk in LAMS zip files
In response to 1 02/11/11 06:57 PM
[ Reply | Forward ]
Hi Daniel,

This is kind of a hard one.

Let me explained why:

Say I'm using a noticeboard and I want to include an image into it. So in the HTML Editor I choose to upload a picture. Then using the image link, I can add the image I've just uploaded directly into the HTML editor.

So far no problems.

Now, say that I don't want to use this image anymore, well, I can easily just press the backspace key and delete the image in the HTML editor. That would get rid of the image on the screen however, the actual uploaded file will still remain in the sequence.

You might think that it wouldn't be too hard to check everytime I save the content of an activity whether the uploaded files are still being using in the activity or not by parsing the HTML code produced by the editor... that shouldn't be too hard.

However, the catch here is with files like .swf and .flvs. Some of the embedding objects (like flash) can have internal links to files (in binary format) that can't be parsed in HTML and detect whether these files are used or not.

Therefore deleting them if we can't find a reference to these files might break the content completely.

So back in version 2.1, we added an option so you can manually delete the files if you don't need them by pressing this garbage bin button:

I know, I know... this is not probably the perfect solution. But until we come up with a smarter way to remove unneeded files this option can work.

If you want, you can eliminate these files manually and you'll see that the size of your sequence will be reduced dramatically.

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Remaining junk in LAMS zip files
In response to 2 02/13/11 10:51 AM
[ Reply | Forward ]
Hi,

I like that solution and understand the problem.

Maybe just 1 lines of comment explaining the issue.

"You now can delete several multi-media assets that are no longer needed in the sequence".

However, I wouldn't use the trashcan, but rather a (pre-ticked) list since there can be 20 files to delete. Then user would [[KILL ticked items]]

Posted by Daniel Schneider

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum