How to use a file from other project
I wonder if there's a way to get an image from other project. Basically I have a project that guests and users will be using, and another where the admins will be using and I need to get files that the users upload on a project to the other where the admins will be able to see it
6 Replies
I tried this:
I'm using this plugin by the way https://filamentphp.com/plugins/hugomyb-media-action#preload
But it would be really usefull if anyone could explain to me even using FileUpload, I just want to know how to get to the file outside the project
The best is to probably set up an API endpoint in your other project you can call.
Also unrelated, but quick tip to tidy your code up
Can be simplified to:
and if you want to use an inline callback you can also do:
I was thinking that it would end on this hahahah
Thanks for the tip 👍
It's a bit of work sadly, but it's definitely the least hacky and securest way to go about it
I’ll try to store everything on a s3 from Amazon, I think it’ll be the best for my projects
That ofcourse also works, setting up a separate accessible file storage 👍