How to add an attachment description to file uploads?
I am trying to find a way to allow the user to include an Attachment Description that goes in the Attachment object "Description" field when using the file upload component. I don't see a way to do any Actions on a file upload to add it. Has anyone figured out a way to do this?
Tagged:
1
Categories
- 7.9K Questions
- 926 Ideas
- 220 Discussion Categories
- 178 General
- 9 Community Feedback
- 3 Community Info
- 18 Knowledge Base
Comments
We use a table on the Attachment Object just below the file upload component, with a "description" column. When the user uploads a file, it shows up as the first row in the table, and the description can be edited.
But why do you need two models?
Can users edit the data that templates pull in with merge syntax? I thought that was possible. If so, could you use a template with {{$Model.Attachments.data.0.Description}} instead of two models and a field editor?
Probably more complicated than it's worth.
Pat is describing an action on the attachment model, not the file upload component.
You should have two models on your page (or three, with Pat's method). One on the object that has the record you are attaching to; and one (or two) on the Attachments Object, with a condition linking it to the first model.
Makes sense?
I really think Skuid can do what you're asking. We've done it. If you're happy with your visualforce solution, that's great. If you want a complete sample/description, let me know.
I will mention that this 'patient' is completely fictional. We're not violating anyone's privacy.
Any movement on this?
I'd love to see the model on the Attachments object be able to trigger actions in the action framework upon creation of a new row.Β
Can someone help me fix this issue or confirm if its a bug?
@Rob Hatch
For community users, the attachment description or filename is not getting updated while using the file upload component.
Can you help me fix this issue?