About modification of h5p file
We have used branching scenario in order to make a quizz with this.
This quizz become hugh and we need to have a copy of this quizz but without some branch.
Actually we see it is not possible to move branch from one to another.
If we delete branch, we deleted all child's element.
I download h5p file and unzip content.
I see in folder content a json file content.json which contains all branchs.
I understand how it is created and change manually attribute "nextContentId" in order to go to correct id.
My problem is to upload this file (I use h5p with moodle).
I zip this file, change extension.
When I upload file, I have this kind of error.
Validating h5p package failed.
When I unzip h5p, it automatically create folders.
How can I modify h5p manually and upload it ?
Can you advise?
Thanks in advance
Wed, 10/09/2019 - 19:32
Hi Laurent,Did you zip the
Did you zip the folder or the files? Zipping the folder will not work instead you need to zip the files.
Wed, 10/09/2019 - 19:39
When I unzip h5p file, it
When I unzip h5p file, it create a lot of subfolders like folder content where content.json is.
Is it normal to have theses subfolders ?
I zip all of these subfolders not only files.
What is the best way to unzip and zip h5p files ?
Thu, 10/10/2019 - 01:44
What program and OS are you using to zip your files?
I have run into the same issue and it depends on what OS and zip program you use to compress the files.
If you search the forums you might find my other postings on how to fix depending on what program or system you are using
Thu, 10/10/2019 - 17:53
Hi studyaid,I run on Windows
I run on Windows and use 7zip.
I search on forums with keyword zip and found your answer https://h5p.org/node/275080
I follow your instructions on Linux (I previously install zip package)
zip -r -D -X css_test.h5p *
-D do not add directory entries
-X eXclude eXtra file attributes
Now I can upload file.
I think I will continue to use Linux to zip file.
Thank you for your solution
Wed, 10/16/2019 - 02:58
7-zip command line
The instructions are in the post below for 7-zip.
Tue, 10/15/2019 - 09:20
There is a similar discussion
There is a similar discussion here: https://h5p.org/node/617131