The ability of my ops team to upload and retrieve documents using ActiveStorage blobs from the admin panel
There seems to be no understanding of the ActiveStorage data architecture from Forest
I would like to be able te create and retrieve documents from my Admin panel
- Project name: Depozen
- Team name: Zenrent
- Environment name: production
- Agent type & version: rails 6/forest 8
Not sure that this is a developed feature but i’ll try to ask anyway.
- Can you give more context about your use case?
ActiveStorage is native to Ruby On Rails. As far as I know, you can use it where ever you need it but I don’t think we have specificities regarding
I will ask for more information from a colleague that is more used to working with the rails ecosystem.
I think the best option is to implement a smart field .
You can check the documentation below
Thank you for your reply
indeed the plan was to use asmart field for displaying.
Would you have any clue on how I could also upload a document ?
The idea here is to allow my team to upload documents for an object directly from the admin panel using the ActiveStorage blob structure.
Thanks in advance,
You can use the same smart field for upload and download.
You need to disable read-only mode, then change the edit widget to “file picker”.
Then, when you add/edit a record in your collection, your smart field will look like this .
More information here
Great! I’ll check that out.