Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The temporary files are being storage in public scheme.
Comment | File | Size | Author |
---|---|---|---|
#15 | solve_cron_null-2908953-15.patch | 8.38 KB | VanHomero |
#14 | update_patch_12_to_rc3_version-2908953-14.patch | 8.3 KB | VanHomero |
#12 | move_files_upload-2908953-12.patch | 8.82 KB | VanHomero |
#11 | fix_method_copytree-2908953-11.patch | 7.75 KB | VanHomero |
#10 | move_method_copytree-2908953-10.patch | 7.75 KB | VanHomero |
Comments
Comment #2
VanHomero CreditAttribution: VanHomero as a volunteer commentedComment #3
VanHomero CreditAttribution: VanHomero as a volunteer commentedModify the classes H5PEditorDrupalStorage, H5PEditorDrupalStorage and H5PUploadWidget to move the files uploaded to the temporary directory.
Comment #4
icc CreditAttribution: icc commentedI've created an issue in the H5P tracker to ensure that the patch gets applied before the stable version is released: HFP-1500
Comment #5
VanHomero CreditAttribution: VanHomero as a volunteer commentedI add a new changes to improve the load of the files.
Comment #6
VanHomero CreditAttribution: VanHomero as a volunteer commentedUpdate the path to storage files.
Comment #7
VanHomero CreditAttribution: VanHomero as a volunteer commentedImprove the way that the temporary works with the class H5PWidgetBase.
Comment #8
VanHomero CreditAttribution: VanHomero as a volunteer commentedWhen 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.
Comment #9
VanHomero CreditAttribution: VanHomero as a volunteer commentedAdd a validation for the upload files in new nodes.
Comment #10
VanHomero CreditAttribution: VanHomero as a volunteer commentedMove method copyTree from H5PDefaultFormatter to H5PDrupal.
Comment #11
VanHomero CreditAttribution: VanHomero as a volunteer commentedFix the method copyTree in H5PDrupal class.
Comment #12
VanHomero CreditAttribution: VanHomero as a volunteer commentedMove files when a H5P is uploaded.
Comment #13
icc CreditAttribution: icc commentedIs 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.
Comment #14
VanHomero CreditAttribution: VanHomero as a volunteer commentedI'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.
Comment #15
VanHomero CreditAttribution: VanHomero as a volunteer commentedThe solution for #comment-14 has an issue with the cron job. This new patch fix it.
Comment #16
paalj CreditAttribution: paalj commentedI 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 :(