V8-archive: Aliyun OSS

Created on 6 May 2019  Â·  12Comments  Â·  Source: directus/v8-archive

Feature Request

aliyun OSS

What problem does this feature solve?

S3 services are not available in China.
Because Amazon does not have a server available in China
For Chinese people, we can not normally access foreign networks. If we want to access foreign networks, we need to connect VPN, which is very difficult for ordinary people. In China, people use Aliyun OSS to store files.

How do you think this should be implemented?

Https://github.com/aliyun/aliyun-oss-php-sdk/blob/master/README.md

Would you be willing to work on this?

enhancement help wanted

Most helpful comment

@benhaynes the core needs to be touched to create the adapter, I created a pull request with the changes:
https://github.com/directus/api/pull/939

I have tested it and it works:
Screenshot 2019-05-08 at 11 55 52

All 12 comments

@cdwmhcc @benhaynes there is a aliyun-oss flysystem adapter

how can I contribute?

@cdwmhcc @benhaynes there is a aliyun-oss flysystem adapter

how can I contribute?

nice going!

Hey @benydc — Thank you!! It'd be great to get a better understanding of how to create more custom storage adapters (one of our extension types). Here are our (incomplete) docs for storage adapters. Our previous lead dev left the team before finishing. :/

https://docs.directus.io/extensions/storage-adapters.html#core-adapters
https://docs.directus.io/advanced/api/configuration.html#storage

@bjgajjar @hemratna — do you know if we support custom storage adapters as of now? If so, how can we create them? I'd love to get these docs updated!

I don't see any storage directory in here, so maybe it's not supported yet? Or maybe it's all done through the config?

https://github.com/directus/api/tree/master/public/extensions/custom

@benhaynes the core needs to be touched to create the adapter, I created a pull request with the changes:
https://github.com/directus/api/pull/939

I have tested it and it works:
Screenshot 2019-05-08 at 11 55 52

Thanks @benydc !! I commented my thoughts on the PR.

@benhaynes the core needs to be touched to create the adapter, I created a pull request with the changes:

939

I have tested it and it works:
Screenshot 2019-05-08 at 11 55 52

Thank you very much!!!

@cdwmhcc @benhaynes there is a aliyun-oss flysystem adapter

how can I contribute?

image

image

image

I configured it.
But it doesn't seem to work.

image

I'm sorry,My fault
It works normally and has been uploaded successfully.

image
But how do I define Bucket Domain?
Join me with a lot of thumbnail sizes. It's slow to use js for processing.

@cdwmhcc in the api.php replace value in root_url with https://macwo.oss-cn-qingdao.aliyuncs.com/uploads/_/originals

I don't understand your last phrase, what do you mean?

@cdwmhcc in the api.php replace value in root_url with https://macwo.oss-cn-qingdao.aliyuncs.com/uploads/_/originals

I don't understand your last phrase, what do you mean?

OKK,I see,haha
Thank you!

@cdwmhcc in the api.php replace value in root_url with https://macwo.oss-cn-qingdao.aliyuncs.com/uploads/_/originals

I don't understand your last phrase, what do you mean?

image

The originals root URL is working properly
But how to set up the thumbnail root URL

To achieve better clarity/visibility, we are now tracking feature requests within the Feature Request project board.

This issue being closed does not mean it's not being considered.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cdwmhcc picture cdwmhcc  Â·  3Comments

binary-koan picture binary-koan  Â·  3Comments

gitlabisbetterthangithub picture gitlabisbetterthangithub  Â·  3Comments

chintohere picture chintohere  Â·  3Comments

maettyhawk picture maettyhawk  Â·  3Comments