Can't download interactive content in drupal7
Submitted by hoangbien on Tue, 04/12/2016 - 05:44
Forums:
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
Tue, 04/12/2016 - 11:17
Permalink
Hi Bien! It appears that
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
Mon, 05/08/2017 - 03:34
Permalink
Can't Download from Drupal7 in Chrome
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
Tue, 05/09/2017 - 10:07
Permalink
Yes, it appears your server
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
duqtape
Mon, 08/14/2017 - 23:37
Permalink
Thanks!
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.
duqtape
Mon, 08/14/2017 - 23:35
Permalink
Thanks!
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.
duqtape
Mon, 08/14/2017 - 23:36
Permalink
Thanks!
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.