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
Add support to upload cloudinary file to specific folder with path variable #13919
Conversation
Is it all? Just these few lines? @angelbanderasudg Can you add documentation for this? Also, what about setting the main default folder for it? Let's say, we have more projects connected to the same Cloudinary "bucket", so we want to set all media related to project A in projectA folder(all the Strapi folder within), and the media from project B in projectB, etc. It would like to add a prefix for the file path with the name of the project(from an environment variable, for instance, or from another Strapi setting), and following by the folder path, which is already a property for any media content. What do you think about this @derrickmehaffy and Strapi staff? |
This pull request has been mentioned on Strapi Community Forum. There might be relevant details there: https://forum.strapi.io/t/media-library-folders-beta-is-live/19515/34 |
Any updates here? Looking forward to this. |
This looks good to me, could you fix the merge conflicts? |
Codecov ReportBase: 59.11% // Head: 59.11% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #13919 +/- ##
=======================================
Coverage 59.11% 59.11%
=======================================
Files 1502 1502
Lines 38360 38360
Branches 7385 7385
=======================================
Hits 22677 22677
Misses 13411 13411
Partials 2272 2272
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Fixed the conflicts :) Everything works on my side, I will merge when tests pass |
Can you document this? |
@SalahAdDin For some reason I completely missed your message on this thread. Sorry. About the documentation, I am looking for a way we could document providers. https://docs.strapi.io/developer-docs/latest/plugins/upload.html#examples Right now, in the docs, we only mention the user to look up the provider configuration. But we should have a way to document this, I will take a look.
That is a good idea, but maybe it could fit in another PR so we can have a discussion for it. would you be open to work on it? :) |
What does it do?
This makes possible to upload files to a specific folder for the upload-cloudinary provider, like the aws-s3 provider, taking the path variable as the folder
Why is it needed?
By using it, you can organize your files on cloudinary
How to test it?
Just set your cloudinary details for the plugin, open the /upload endpoint and send a request with the "files" and "path" variable
Related issue(s)/PR(s)