Managing ActiveStorage documents from Forest Admin panel

Feature(s) impacted

The ability of my ops team to upload and retrieve documents using ActiveStorage blobs from the admin panel

Observed behavior

There seems to be no understanding of the ActiveStorage data architecture from Forest

Expected behavior

I would like to be able te create and retrieve documents from my Admin panel

Context

  • 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.
Many thanks!

Hello @julien-mathieu.

  • 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 forest-liana.

I will ask for more information from a colleague that is more used to working with the rails ecosystem. :slight_smile:

Kind regards,
Morgan.

hello @julien-mathieu

I think the best option is to implement a smart field :slightly_smiling_face:.

You can check the documentation below

Here is an example (in javascript) to handle files with a smart field.

1 Like

Hi :slight_smile:

Thank you for your reply :slight_smile:
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,
Julien

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 :slightly_smiling_face:.

More information here

Great! I’ll check that out.

Many thanks :pray:

Julien

1 Like