impactoss / impactoss-server

IMPACT OSS - server-side application & API
https://demo.impactoss.org
MIT License
3 stars 8 forks source link

Change S3 file URL #392

Closed tmfrnz closed 8 months ago

tmfrnz commented 8 months ago

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]

tmfrnz commented 8 months ago

actually I think it should be done in the client