downloading h5p file - unzip, rezip and upload again not working...
Submitted by ubergrafik on Fri, 06/01/2018 - 07:38
Forums:
Hi,
as an experiment, I made a quick module, with not much in it. I downloaded it, changed the .h5p extension to .zip, and extracted it.
I then remade it into a zip, and changed teh extension back to .h5p.
Essentially, it was a round trip where nothing was changed.
When I try to load it, I got the following message:
Validating h5p package failed.
What I am ultimately attempting to do is to create a library, add it to an unzipped folder, then rezipping, changing the name etc.
Am I going about this totally the wrong way?
Thanks,
Brce
otacke
Fri, 06/01/2018 - 09:18
Permalink
Hi Brce!I suppose you're
Hi Brce!
I suppose you're trying to upload your file in the Content Hub? Since it's not a content file, but just a bunch of libraries, that won't work. Please upload it using the library page in your host system's settings.
Best,
Oliver
p. s.: If you're experimenting with custom packing of h5p files, please make sure that you stick to our specification, because otherwise you might break compatibility.
otacke
Fri, 06/01/2018 - 09:24
Permalink
I just did some extra
I just did some extra checking, and obviously the error message that you recieved will also pop up if you zip the files wrong. Could you please check if you zipped the folder (won't work) or all the files (should work)?
ubergrafik
Mon, 06/04/2018 - 02:13
Permalink
Yes! Thanks Oliver, that was
Yes! Thanks Oliver, that was the exact problem:)
Thanks heaps:)