Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link

Description

@hunterm-wbc
Issue body actions

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?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.