datopian / ckanext-blob-storage

CKAN extension to offload blob storage to cloud storage providers (S3, GCS, Azure etc).
http://tech.datopian.com/blob-storage/
MIT License
14 stars 4 forks source link

Setting lfs_prefix on the server side #52

Open pdelboca opened 3 years ago

pdelboca commented 3 years ago

This is a follow up of #51

Re lfs_prefix it kind of makes sense to create it on the server side, but it also doesn't - the uploading client should set it after doing the upload, after all the server isn't uploading. I'm thinking that maybe the right solution would be an endpoint that provides the "right" lfs_prefix, along with the LFS server URL and an auth token. This can be used by API clients to upload and then set the right prefix. I'm not sure about this. What do you think?

Main issue:

Nowadays all the API calls on SDKs to upload files needs to know implementation details of the server to be able to set lfs_prefix correctly. How can we provide a better UX for this?