Can't download interactive content in drupal7

Dear All,

I used H5P to create interactive content in drupal7. I created a content as Course presentation, so i open the content and click download button. However, I can't download interactive content.

You can try on http://ganeshaid.com/content/e-health-promotion-diabetes-type-2.html

After click Download button

Please help me how to solve this problem?

Thank you so much,

Bien

icc's picture

Hi Bien! It appears that browser is trying to display the .h5p file. This is because your web server isn't sending the "Content-Type" header for h5p/zip files so the browser doesn't know what is coming.

I see that you're using nginx, so you should have the default mime.types file included in your nginx.conf. You can also add a custom for entry for .h5p files: "application/x-h5p h5p;"

roblespar's picture

Hi icc

I have the same problem for https://deap.med.unsw.edu.au/node/14
deap is a Drupal7 server with an H5P module to provide H5P learning objects.
It works in Firefox and Safari but not Chrome.
Suggestions?

Regards, Robert

icc's picture

Yes, it appears your server isn't sending the correct content type either. Try adding the following to your Apache's conf/mime.types file: application/x-h5p h5p

I am on a shared host (Host Gator) and I was able to add the custom mime type in the CPanel in the Advanced section.  I had to add the type as "application/x-h5p" and the extension as "h5p".  Once I did that, I was able to download the content.  I'm going to assume that other shared hosts have a similar section.  It did not require anything but filling out their form in the Mime types section.

I am on a shared host (Host Gator) and I was able to add the custom mime type in the CPanel in the Advanced section.  I had to add the type as "application/x-h5p" and the extension as "h5p".  Once I did that, I was able to download the content.  I'm going to assume that other shared hosts have a similar section.  It did not require anything but filling out their form in the Mime types section.

I am on a shared host (Host Gator) and I was able to add the custom mime type in the CPanel in the Advanced section.  I had to add the type as "application/x-h5p" and the extension as "h5p".  Once I did that, I was able to download the content.  I'm going to assume that other shared hosts have a similar section.  It did not require anything but filling out their form in the Mime types section.