Hi All, I would like to know whether I can use Alibaba Cloud OSS for my File Storage. My first search will be to use django-storages library, but unfortunately the is no option for Alibaba Cloud OSS. I am thinking whether I should write boilerplate code or write it from scratch, anyone with guidance will be so helpful. My final goals is to use it together with django-ckeditor-5.
I’m using django-s3-storage with various S3-compatible services which aren’t run by Amazon. It works perfectly fine, but you also have to configure the endpoint URL, not just the access keys, region and bucket name.
I took a short look at the django-storages documentation and there are some instructions for using it with other s3-compatible providers: S3 Compatible - django-storages 1.14.4 documentation . There’s no ready-made documentation for Alibaba Cloud, but you should be able to apply the examples to the Alibaba Cloud-specific URLs. That being said, I haven’t worked with Alibaba so I cannot offer more help here.
Haven’t actually try the S3 Compatible API, I will try to use it first, and let you know, whether this can be a solution.
An update, fact that to use Alibaba Cloud OSS we can use django-storage for s3. boto s3 can be used compatibly with Alibaba Cloud OSS.
Use Amazon S3 SDKs to access OSS - Object Storage Service - Alibaba Cloud Documentation Center