Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derived Column: storage cannot upload stream/file #1571

Open
abegehr opened this issue Oct 31, 2024 · 0 comments
Open

Derived Column: storage cannot upload stream/file #1571

abegehr opened this issue Oct 31, 2024 · 0 comments

Comments

@abegehr
Copy link

abegehr commented Oct 31, 2024

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant