Upload website or linked resources intact

Bug #1317494 reported by Gordon McLeod
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Wishlist
Unassigned

Bug Description

Hi,
I realise this issue is because of the way that files are uploaded and structured on Mahara, but it's impossible to upload any packaged resources such as micro websites or learning activity resources (eg scorm/xerte/multi page flash), as the links between the files are broken when they are renamed during upload. If there was an option to upload a zipped folder without Mahara automatically renaming the files contained within the zip folder it would allow users to select the index file as the target link and run these micro sites within Mahara pages.

If anyone can suggest a workaround I'd love to hear about it. I did consider if it was possible to add a single item, note it's Mahara filename, then manually (with FileZilla or similar) load a zip to the same place on the MaharaData folder with a renamed index file to replace the existing resource. Not ideal but as a concept it might work (I don't have back-end access to live server in my current role so wouldn't be able to do this myself).
Regards, Gordon.

Revision history for this message
Aaron Wells (u-aaronw) wrote :

So for example:

1. You create an HTML file called "foo.html" and another called "bar.html"

2. foo.html contains a link to bar.html like so: <a href="bar.html">bar</a>

3. You zip these up together and upload them to Mahara. Or you upload them individually.

4. You make them both displayable in a page.

Expected result: When you view the contents of foo.html, the link to bar.html should work.

Actual result: The link will not work. The reason is, that the URL to view the contents of bar.html as uploaded to Mahara, is actually something like "http://www.example.org/artefact/file/download.php?id=5&page=6"

The same is true for images, CSS files, and any other content linked to in an HTML file.

Hm... this would certainly be a tricky problem to resolve.

Changed in mahara:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Gordon McLeod (g-mcleod1) wrote :

Hi Aaron,

Yes - that's exactly it. For example I've created a virtual tour of our campus (as flash or html5 with additional media files) - which includes a map linking to 360 degree image/video for each location, but while I could embed them to Mahara from another website they can't be uploaded directly as the hard-coded links between the files are defunct.
Same would apply for students creating a website for their portfolio - it can't be displayed within Mahara unless embedded or linked from an external site.

Regards, Gordon.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.