Upload files to a page with a seeder or migration
Created 6 years ago by araminhoI am able to add text content to module elements/pages, by following this answer https://pyrocms.com/forum/channels/modules/create-module-elements-with-a-seeder but the files adding by specifying image tag and URL is not working, probably more parameters are needed Could you please provide a documentation or share some experience on implementing the logic for seeding files/images to the module elements/pages?
You can do something like this: https://pyrocms.com/documentation/files-module/latest#integration/laravel-filesystem/storing-files
But it might be better to do something like using the
FileSynchronizer
: https://github.com/anomalylabs/files-module/blob/2.3/src/File/FileSynchronizer.php#L53