We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi !
I don't know if i'm doing something wrong but in Bun I do :
await uplo.attachments.user(user.id).avatar.attachFile({ fileName: file.name, content: Buffer.from(await file.arrayBuffer()), contentType: file.type })
The problem is: Buffer.from(await file.arrayBuffer()) instanceof Uint8Array returns true
Buffer.from(await file.arrayBuffer()) instanceof Uint8Array
true
So it throws because of this:
} else if (content instanceof Uint8Array) { throw new Error("Uint8Array not implemented"); }
If I comment it, the file is uploaded properly tho, is there any reason you can't send a Buffer to GCS ?
The text was updated successfully, but these errors were encountered:
Hey!
Good question, last time I checked, GCS was not supported Unit8Array, but yea, we can try to impement this or just remove this line.
Sorry, something went wrong.
Do you want a PR for this ? I'm trying to avoid fork+publish it possible 😅
No branches or pull requests
Hi !
I don't know if i'm doing something wrong but in Bun I do :
The problem is:
Buffer.from(await file.arrayBuffer()) instanceof Uint8Array
returnstrue
So it throws because of this:
If I comment it, the file is uploaded properly tho, is there any reason you can't send a Buffer to GCS ?
The text was updated successfully, but these errors were encountered: