copy the JSON key file from google-cloud to src > secret-files and rename the file to secret-files.json
3 - new bucket
Create new bucket
4- Update config json
path: config > default.json
Update projectId **and bucket name
"google-cloud": {"projectId":"THIS IS THE PROJECT NAME","bucket":"THE BOCKET NAME","keyFilename":"../src/secret-files/google-key.json","signedUrlExpires":900 },
Allow google-cloud
"feathers-mongoose-casl": {"uploads": {"services": {"s3":false,"local-private":true,"local-public":true,"google-cloud":true// This need to be true }....
const {Joi,enums} =require('feathers-mongoose-casl');constgetJoiObject=function(withRequired) {constrequired= withRequired ?'required':'optional';returnJoi.object({ storage:Joi.string().valid(enums.STORAGE_TYPES['google-cloud'],//We need to add this lineenums.STORAGE_TYPES['others'],// When user pass link to file ).meta({ dashboard: { hide:1 }})... })}