-
Notifications
You must be signed in to change notification settings - Fork 370
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
storage client library compatible with create-react-app #2226
Comments
Hi @daniel-odc thanks for the question. We get this question / request fairly regularly (ex: #1883). As you noted this library was originally written for Node and we currently don't support browser based usages. Due to the frequency of this question and the large community of web developers we are actively investigating how we can bring support to the browser. No timelines have been established but it is definitely on our radar. If you have a server side API written in Node I can offer a workaround for uploading a file by generating a signed URL on the server side, returning it to the client side, and using the HTTP lib of your choice to perform the upload. |
Hi Denis
Nice to hear from you! Thanks for keeping me posted and looking forward to
seeing the progress on the browser support development.
Many thanks again for your great libraries.
Kind regards
Daniel
Daniel Marin
+44 77 8395 0304
+33 6 60 96 75 22
www.open-dc.com
*From:* Denis DelGrosso ***@***.***>
*Sent:* Tuesday, June 27, 2023 4:16 PM
*To:* googleapis/nodejs-storage ***@***.***>
*Cc:* Daniel Marin ***@***.***>; Mention ***@***.***
*Subject:* Re: [googleapis/nodejs-storage] storage client library
compatible with create-react-app (Issue #2226)
Hi @daniel-odc <https://github.com/daniel-odc> thanks for the question. We
get this question / request fairly regularly (ex: #1883
<#1883>). As you noted
this library was originally written for Node and we currently don't support
browser based usages.
That said, due to the frequency of this question and the large community of
web developers we are actively investigating how we can bring support to
the browser. No timelines have been established but it is definitely on our
radar.
With that said, if you have a server side API written in Node I can offer a
workaround for uploading a file by generating a signed URL
<https://googleapis.dev/nodejs/storage/6.11.0/File.html#getSignedUrl> on
the server side, returning it to the client side, and using the HTTP lib of
your choice to perform the upload.
—
Reply to this email directly, view it on GitHub
<#2226 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5E7SUM5R45P5P7A4EIZUUDXNLTLVANCNFSM6AAAAAAZVSHMUE>
.
You are receiving this because you were mentioned.Message ID: <
***@***.***>
|
@daniel-odc I am going to close this issue to help keep things organized. Please feel free to follow / add comments to #1883. |
👍
Daniel Marin
+44 77 8395 0304
+33 6 60 96 75 22
www.open-dc.com
*From:* Denis DelGrosso ***@***.***>
*Sent:* Thursday, June 29, 2023 3:41 PM
*To:* googleapis/nodejs-storage ***@***.***>
*Cc:* Daniel Marin ***@***.***>; Mention ***@***.***
*Subject:* Re: [googleapis/nodejs-storage] storage client library
compatible with create-react-app (Issue #2226)
@daniel-odc <https://github.com/daniel-odc> I am going to close this issue
to help keep things organized. Please feel free to follow / add comments to
#1883 <#1883>.
—
Reply to this email directly, view it on GitHub
<#2226 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5E7SULUJINVGYCEAC7QD63XNWAXZANCNFSM6AAAAAAZVSHMUE>
.
You are receiving this because you were mentioned.Message ID: <
***@***.***>
|
Hello
many thanks for your great client libraries. The documentation is great and the code samples very clear.
My issue is that I am developping React applications using create-react-app and it seems that it is incompatible with some of your methods.
Example: I am using the
uploadFile.js
code sample, which creates the following error:I gather this is because these libraries are designed to work with node.js in the backend. Would it be possible to make them compatible with front-end React code?
Many thanks
The text was updated successfully, but these errors were encountered: