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

feat: add drag-and-drop image upload to Sanity storage #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

khalidkhankakar
Copy link

Drag-and-Drop Image Upload to Sanity Storage

This pull request introduces a new Drag-and-Drop Image Upload feature to enhance the user experience by allowing simple and efficient image uploads directly to Sanity storage. Users can now easily drag and drop supported image files (PNG, JPEG, JPG) into a designated upload zone, preview the image, and seamlessly store it in Sanity’s backend.

Features

  • Drag-and-Drop Zone: An intuitive upload area where users can drag and drop images or click to select a file.
  • Image Preview: After selecting an image, users can preview it immediately before uploading.
  • Supported File Types: The upload feature supports the most common image formats: PNG, JPEG, and JPG.
  • Performance Optimization: The feature is optimized for quick, efficient uploads, providing a smooth user experience.
  • Sanity Storage Integration: Uploaded images are securely stored in Sanity’s storage, making it convenient to access and manage assets.

image upload

Copy link

vercel bot commented Oct 29, 2024

@khalidkhankakar is attempting to deploy a commit to the JS Mastery Pro Team on Vercel.

A member of the Team first needs to authorize it.

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

Successfully merging this pull request may close these issues.

1 participant