Skip to content

@powersync/attachments StorageAdapter method parameters are a bit limited #715

@hunterm-wbc

Description

@hunterm-wbc

As a user, when I'm implementing my own StorageAdapter, I find the parameters defined by the interface to be a bit limiting. Specifically, the uploadFile, downloadFile and deleteFile methods. In order to interface with my own backend, I need more information than just the filename or uri, I specifically need some of the information from the attachment record, including the additional columns I've defined.

For my own use case, I've resorted to stuffing any information I need to process the file to the filename of the record, which works - however this seems a bit hacky.

Is there any possibility of having this interface expanded to provide pass alone the attachment record?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions