Problems uploading video file

I have been able to upload and test several of the interactive files - fill in the blanks, flash cards, question set and presentation. But I have not been able to get the interactive video file (618.h5p) to work.
I've tried my laptop on a wireless connection with Vista and Chrome; my desktop with a wired connection with Windows 7 and Chrome and Firefox. My connection is not really fast - 734 kbps (91.8 KB/sec transfer rate). It takes a little more than 5 minutes to upload the file. In Chrome, the percent of upload shows in the status bar. In Firefox, it shows connected to my server name. When the upload reaches 100% in Chrome (and after several minutes in Firefox) it shows as waiting for my server name. Then, the page refreshes to a new blank interactive content creation page. Nothing seems to have happened at the server.
The server I'm using is on Dreamhost. It a VPS instance. I running the latest version of Drupal - 7.26. PHP 5.4.20
One warning message - missing Fileinfo. Could that be the problem?


I've seen this problem before. Everytime I've seen it the problem has been filesize limitations in the php settings file called php.ini.

From my .ini file:

; Maximum allowed size for uploaded files.
upload_max_filesize = 200M

; Maximum size of POST data that PHP will accept.
post_max_size = 200M

So my site will handle php files of maximum 200 MB. If I upload a bigger file I'll get the same problem you're getting, and Drupal won't give you any good error message. I don't think Joomla will either. It just displays a new blank "Create interactive content" page, as you describe.

I hope you're able to increase your upload limitations and that it works :)

I've made the changes to the memory limit. Now, I getting this message:
"The file 618.h5p could not be saved. An unknown error has occurred.
You must upload a h5p file."
I've tried it twice with and without Fileinfo enabled. I also downloaded a new version of the h5p file to make sure the one I had was not corrupted.
Here are my settings from my phprc file (And the changes are reflected in the site Status Report.)
memory_limit = 128M
;Changes to allow interactive video for h5p
;Maximum allowed six for uploaded files
upload_max_filesize = 200M
;Maximum size of POST data that PHP will accept
post_max_size = 200M
max_execution_time = 500
max_input_time = 500

Thanks Grant

What CMS / LMS are you using? Drupal 6, Drupal 7, Joomla 2.5 or Moodle? What version of the module are you using if it is Drupal?

Drupal - 7.26. PHP 5.4.20

7.x-1.0-beta4 for h5p

The error seems to be with your web server. The error messages is produced by Drupal, not H5P.

Maybe you can find your answer here?

It was a server problem. You need to set the upload_tmp_dir = [Path]/tmp/
I set mine to be the same as in Drupal - admin/config/media/file-system but it does not have to be the same.
So, you need to increase filesize limitations in the php settings file called php.ini and set the upload tmp directory.
(This is a PHP issue - not Drupal.)

I'm glad you found a solution to your problem, and thank you for sharing it :)