-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: s3
driver
#361
feat: s3
driver
#361
Conversation
Hi @becem-gharbi,
|
Hi @itpropro, thanks for your help. |
β¦ovided For S3 compatible providers that do not implement ObjectsDelete or that have different API than the standard, the solution is to omit `accountId` option in order to perform multiple ObjectDelete instead.
β Live Preview ready!
|
Hi @itpropro, the driver is now ready to review. Regarding test, I'm not sure if using |
Hi, I have recently converted this PR to a draft. The reason is because this driver is intended to be used with any S3 compatible service. The problem is that some differences exist in term of their implementations. These differences reflect in the driver usage. I have mentioned them in docs. I'm not sure about the current approach and I'm looking forward to your feedback. |
(@becem-gharbi sorry for delay on my side to give feedback, if you like, we can still keep it open or alternatively i can continue on this. just assuring you it was not intentionally left unattended) |
@becem-gharbi Thank you, you've done a good job again. we need to make sure you support all s3 protocols. cloudflare r2, amazon s3 etc. @pi0 can you prioritize this issue, because this is a need in many areas such as amazon and cloudflare r2. It is an expected feature to use |
Thanks a lot @becem-gharbi for the PR! For now, we have hosted your work here. Your code passes all the tests with 2 very small issues. See open issues in the repo. Thank you ! |
Is it really needed to support S3-like environments? Or should they be a separate driver? For example Cloudlare R2 has a working driver already. On the other hand Cloudflare R2 HTTP driver is currently missing and this could solve #318 |
@MickL yes it makes sense for unstorage to have explicit vendor drivers, even if they are wrappers but in fact, this driver is auto "compatible" with cloudflare R2. |
π Linked issue
#11
β Type of change
π Description
There is already an open PR (#96) for an implementation based on AWS sdk.
This PR adds an AWS s3 driver based on HTTP for a lightweight bundle size and edge runtime compatibility.
This is a WIP, I'm not sure if all driver methods can be implemented readme.Progress
getItem
getItemRaw
setItem
setItemRaw
getKeys
getMeta
clear
removeItem
hasItem
π Checklist