这是indexloc提供的服务,不要输入任何密码
Skip to content

Derived Column: storage cannot upload stream/file #1571

@abegehr

Description

@abegehr

Describe the bug
The storage instance of firebasestorage.Storage doesn't have any options to upload a file to firebase storage from a readable stream. Checking the @google-cloud/storage docs, it should be there - which version of firebase-admin/storage or @google-cloud/storage should I use as reference?

To Reproduce
Steps to reproduce the behavior:

  1. Go to a derived column function code
  2. Write storage.bucket().file(samplefile.txt).createWriteStream(); in the derivative function.
  3. See error

Expected behavior
I'd expect storage to be able to upload a file from a stream.

Screenshots
Screenshot 2024-10-31 at 18 21 24

      const ts = Date.now();
      const filePath = `users/${row.user.id}/uploads/${ts}-${i}.jpg`
      const fileRef = storage.bucket().file(filePath);
      const outputStream = fileRef.createWriteStream();

Rowy Run version
If applicable, share the Rowy Run version from your project settings.

Desktop (please complete the following information):

  • OS: macOS 15.0.1
  • Browser Chrome
  • Version 130.0.6723.71

Smartphone (please complete the following information):
nA

Additional context
Links to documentation/references:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions