Skip to content

Attachments

Frontend components that plug into standard functionality provided by the djattachments django app

Droppable.vue

Droppable component allows you to wrap a card or listitem in this component and the user can drop files on your component to upload them using add_attachments action on your resource

Example:

vue

<Droppable with-attachment-list with-upload
    resource="deal"
    :resource-id="modelValue.id" >

    ..

</Droppable>

notes:

  • with-upload Dropping a file on your component will upload it to the resource's add_attachment endpoint