Support from Acquia helps fund testing for Drupal Acquia logo

Comments

VanHomero created an issue. See original summary.

VanHomero’s picture

Issue summary: View changes
VanHomero’s picture

Modify the classes H5PEditorDrupalStorage, H5PEditorDrupalStorage and H5PUploadWidget to move the files uploaded to the temporary directory.

icc’s picture

I've created an issue in the H5P tracker to ensure that the patch gets applied before the stable version is released: HFP-1500

VanHomero’s picture

I add a new changes to improve the load of the files.

VanHomero’s picture

Update the path to storage files.

VanHomero’s picture

Improve the way that the temporary works with the class H5PWidgetBase.

VanHomero’s picture

When a media file is uploaded the file doesn't show in the editor until we save the node. So this patch show complete the last patch with the migration files from temporary to public.

VanHomero’s picture

Add a validation for the upload files in new nodes.

VanHomero’s picture

Move method copyTree from H5PDefaultFormatter to H5PDrupal.

VanHomero’s picture

Fix the method copyTree in H5PDrupal class.

VanHomero’s picture

Move files when a H5P is uploaded.

icc’s picture

Is there any particular reason you wish to use the temporary:// store? It seems a bit unnecessary to store it in temp first and then move it to the public area.
Also, it would be nice if you could add some comments to the code specifying what the code does and why. It will make it easier to understand.

This is a solution – the initial issue/problem description is missing.

VanHomero’s picture

I'm using a nfs and a load balancer if I write in the public the nfs can't replicate all the files to all the servers conected to the load balancer. The patch is fix to the 8.x-1.0-rc3.

VanHomero’s picture

The solution for #comment-14 has an issue with the cron job. This new patch fix it.

paalj’s picture

I think some of the changes you have done clearly shows H5P need some refactoring/redesign before this can be implemented in a clean way. We are looking into how to use S3 or similar to store files. I hope the changes need for that will do the trick.

In the meantime, I guess you would have to live with your patches :(