Upload website or linked resources intact
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.
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.