About modification of h5p file
Hi all,
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
Laurent
BV52
Wed, 10/09/2019 - 19:32
Permalink
Hi Laurent,Did you zip the
Hi Laurent,
Did you zip the folder or the files? Zipping the folder will not work instead you need to zip the files.
-BV52
laurentkr
Wed, 10/09/2019 - 19:39
Permalink
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 ?
Regards
studyaid
Thu, 10/10/2019 - 01:44
Permalink
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
laurentkr
Thu, 10/10/2019 - 17:53
Permalink
Hi studyaid,I run on Windows
Hi studyaid,
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
studyaid
Wed, 10/16/2019 - 02:58
Permalink
7-zip command line
The instructions are in the post below for 7-zip.
https://h5p.org/comment/29623#comment-29623
akosblazsik
Wed, 10/14/2020 - 10:47
Permalink
Packaging on Linux
"zip -r -D -X css_test.h5p *" is indeed the right approach on linux. Thanks for sharing!
serettig
Tue, 10/15/2019 - 09:20
Permalink
There is a similar discussion
There is a similar discussion here: https://h5p.org/node/617131
jordicesi
Tue, 01/19/2021 - 11:35
Permalink
is not possible to do that on Windows?
is not possible to do that on Windows?