Tutorial FIles / FIles Will not upload to wp local server.

Hello, I am wanting to create my own content types.  When trying to upload the sample/hello-world tutorial files to the server via the wp upload there are errors.

I have read other posts with the same issues.  Can some provide me with a working zip (.h5p) of the tutorial files so I can see the structure of the data and .zip.

Thanks! 

 

otacke's picture

Hi Steven!

Some of my thoughts:

  • If you want to develop your own content types, you should really do that on Drupal 7, not on WordPress. It's realls much easier. Just created a video that explains some things about that topic. If you really prefer to develop on WordPress, prepare for some hassle.
  • At least I did not unterstand where you tried to upload what. "wp upload" could mean a lot. If you want to upload H5P content that you build your libraries into, that would have to be done via the H5P Content Type Hub. If it's just a library, it would have to be uploaded on the H5P library settings page.
  • "there are errors" and "I have read other posts with the same issues" don't help me to understand what went wrong - I assume others might have the same problem to understand what the problem might be.
  • If you manually zipped files, make sure to use the required flags: -D (do not add directory entries) and -X (eXclude eXtra file attributes), e.g. as zip -rDX myNewFile.h5p *

Best,
Oliver

BV52's picture

Reply from the OP through e-mail.

Hello, thankf for the reply. I am using word press because that is the corporate decision. They implemented H5P on a word press site so I am now just trying to develop for it. The tutorials are clear in the process. But the content of the zip is where the errors are being triggered.

I see that in order to zip then there are flags. But not sure you can set those options outside of the cli and zip. So I will look at hwo to do that and see if I get better results.

Thanks! I will watch the video.

otacke's picture

Hi!

I was not suggesting that the site should run Drupal, but you should develop on Drupal. H5P content can run on any platform that provides a plugin. Developing for H5P on Drupal is way easier, and when you're done, you can simply transfer the result to WordPress, moodle or whatever and it will work the same way.

Best,

Oliver 

I have installed a local drupal7 instance and will work within it to devlope.  Then tyr and export/import to WP.

Thanks!!!!

otacke's picture

Hi Steven!

Thumbs up!

Best,

Oliver