Comments (2)
Hey @anuragkumar19,
A good start would be "Hello".
This storage adapter has been out there since pre-version 1 of Ghost and according to my research, it's not been a year since Ghost allows any file types to be uploaded. It takes time to track all Ghost features 😉
It seems like Cloudinary allows to upload any kind of file, which is excellent. Now, we only need to implement and test this.
Want to contribute?
Thanks!
from ghost-storage-cloudinary.
Hi! @eexit
I was trying to find a way to do it. After a bit of reasearch I found that we can do that very easily with little bit of change.
"storage": {
"active": "LocalImagesStorage",
"media": "LocalMediaStorage",
"files": "LocalFilesStorage",
"LocalMediaStorage": {},
"LocalFilesStorage": {}
},
They use key:-active
for image adapter which didn't hint me at first that there exist other configuration otions like media,files
which I can configure to make my work done. But going through the files led me this.
We have to write two more files one for files
and one for media
and rename the index file. Now we have to move dirctly in content/storage/adapter
instead of content/adapters/storage/ghost-storage-cloudinary
. As these are major changes and break the other application running. We have to release a new major version.
CloudinaryImagesStorage.js
CloudinaryMediaStorage.js
CloudinaryFilesStorage.js
New conf:
"storage": {
"active": "CloudinaryImagesStorage",
"media": "CloudinaryMediaStorage",
"files": "CloudinaryFilesStorage",
"CloudinaryMediaStorage": {},
"CloudinaryFilesStorage": {},
"CloudinaryImagesStorage": {},
},
We have another option to create two other library one for media
and one for files
. It will not break the other application and people who want to use this feature just add that libraries.
Waiting for your opinion on this.
Thanks!
from ghost-storage-cloudinary.
Related Issues (20)
- post banner is not serving in https mode HOT 1
- Migrate to Github Actions
- Format option not working HOT 1
- How to integrate with existing docker-compose? HOT 1
- Crashes in Ghost 4 HOT 3
- "Unable to find storage adapter" in Ghost 4 / API compatibility issue? HOT 10
- Not tested on Ghost version newer than 3 HOT 4
- Move to Github Actions
- Why is intallation instruction so specific about installing the package @2? HOT 2
- Responsive image transformation HOT 2
- Load image card error HOT 1
- Update adapter to pure ESM
- Images uploaded before activating this adapter return 404 HOT 1
- chown: cannot dereference ‘/var/lib/ghost/content/adapters/storage/ghost-storage-cloudinary/node_modules/.bin/image-size’: No such file or directory HOT 4
- Trying to serve images as webp HOT 1
- Support Node 18 HOT 2
- node version incompatibility issue HOT 1
- Possibility to specify the fetch flags AFTER upload HOT 1
- [Question] How do I check if this is working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghost-storage-cloudinary.