With ~12 hours of investigation and eventual success, I feel the need to save some grief for anyone approaching this same challenge.Google Cloud Storage is Google’s version of Amazon S3 Buckets.2) As far as I understood I need to store these files first and then move them to my desired location (which is a dynamic location) 3) I want to parse the files if possible, otherwise the files should just be stored as asset.
I use Google Cloud because the dashboard is really nice to navigate, it‘s directly connected with Google’s API’s , and services are easy to configure and start up.
Here is the section of Google Cloud’s docs that I followed.
I am using multer in my app, though I am trying to see how I should go about finding where multer placed the file in my post function, so that I can do post procesing on it.
1) is already done and I managed storing these files inside of a tmp folder.
In my particular case, I was uploading the images from a React Native app via the react-native-image-picker, to an endpoint on my express server, and then on to Google Cloud.
And that URL can be accessed directly in the browser, serving up the image publicly for use within your application. I hope this helped you to continue on your journey to creating something awesome.
Might be a hexadecimal time stamp or so but I need a more explicit name in order to call a script on it later.
I've followed the explanation found here but it doesn't do anything more than it used to: uploading the file with the hexa name.
Well in my case so far it's working fine but I have no idea how I do process files and how do I move the files when they have been uploaded.