Skip to content
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

[Feature Request]: Implement Image Upload Functionality Using Cloudinary #351

Open
5 tasks done
ShivanshPlays opened this issue Oct 27, 2024 · 2 comments
Open
5 tasks done

Comments

@ShivanshPlays
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Feature Description

Issue Overview

To enhance the blog creation experience, I propose implementing an image upload feature using Cloudinary. This feature will allow users to upload and embed images in their blogs, significantly improving the visual appeal of the content.

With Cloudinary’s secure, scalable media management, we can ensure a smooth and reliable experience for users while minimizing the complexity of handling image uploads on the client-side.


Scope of Work

  1. Cloudinary Integration:

    • Add required API keys to the environment variables for security, after the pr the maintainers can add the env keys for production in netlify
  2. Image Upload Component:

    • Build a React component to handle file uploads.
    • Provide drag-and-drop functionality or a file picker for convenience.
  3. Upload Handling:

    • Implement logic to upload images directly to Cloudinary using its SDK or REST API.
    • Display a loading indicator during the upload process to improve user feedback.
  4. Preview and Embed:

    • Provide an image preview feature before submission.
    • Retrieve the Cloudinary URL after a successful upload and store it with the blog content.
  5. Error Handling:

    • Use React-Hot-Toast to display error messages for failed uploads.
    • Handle common issues such as file size limits and unsupported formats gracefully.

Use Case

  • Improved User Experience: Users can enhance their blog posts with images, making the content more engaging.
  • Seamless Media Management: Cloudinary provides easy access to uploaded images and offers tools for image optimization.
  • Reduced Backend Complexity: With Cloudinary handling the uploads, there is no need to store and manage images directly within the application.

Benefits

No response

Add ScreenShots

No response

Priority

High

Record

  • I have read the Contributing Guidelines
  • I'm a GSSOC-EXT contributor
  • I'm a HACKTOBERFEST contributor
  • I have starred the repository
@ShivanshPlays ShivanshPlays added the enhancement New feature or request label Oct 27, 2024
@ShivanshPlays
Copy link
Contributor Author

@jeevan10017 please review and assign.

@jeevan10017
Copy link
Collaborator

@jeevan10017 please review and assign.
Go for it👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants