5

In PHP, it is really easy to create an upload url with an endpoint that get's hit after the file is uploaded. Documentation Here

$options = ['gs_bucket_name' => $my_bucket];
$upload_url = CloudStorageTools::createUploadUrl('/upload/handler', $options);

I was wondering if there is a way to do this in Node because I can't seem to figure out how.

Even some documentation on how to do it via a http request would suffice.

bryan
  • 8,879
  • 18
  • 83
  • 166
  • Is [this](https://cloud.google.com/nodejs/docs/reference/storage/2.0.x/File#getSignedUrl) what you were looking for, or I didn't understand it? – Mangu Oct 23 '18 at 14:10
  • @Mangu [this](https://cloud.google.com/appengine/docs/standard/php/googlestorage/user_upload) is what I am speaking about but I need it for node. It isn't about accessing a file but allowing a user to upload a file via a google URL – bryan Oct 23 '18 at 15:08

0 Answers0