impactoss/impactoss-server

Change S3 file URL

Closed this issue · 1 comments

Currently the URL returned from FogStorage.put_object_url contains the S3 location and S3 bucket name, eg
https://s3.ap-southeast-2.amazonaws.com/[bucket-name]/[asset-folder]/[file-name.xyz]

Instead we want to store the CLIENT_URL (environment variable), replacing the s3 location and bucket name, resulting in eg
[CLIENT_URL]/[asset-folder]/[file-name.xyz]

actually I think it should be done in the client