Skip to content

fix: allow bulk upload of images and improve error handling #1318

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

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

Conversation

vishalpatel011
Copy link
Contributor

This PR fixes issue #1266 by:

  • Properly handling multiple file uploads in parallel
  • Improving error handling for individual file uploads
  • Adding better user feedback with specific error messages
  • Fixing TypeScript type issues with File/Blob handling

The changes allow users to drag and drop multiple images at once, with proper error handling and feedback for each file.

Copy link
Contributor

@mikeschen mikeschen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good, there are two TypeScript errors:
/home/runner/work/open-tacos/open-tacos/src/js/hooks/usePhotoUploader.tsx:127:33: Trailing spaces not allowed. (no-trailing-spaces)
/home/runner/work/open-tacos/open-tacos/src/js/hooks/usePhotoUploader.tsx:163:35: Functions that return promises must be async. (@typescript-eslint/promise-function-async)
Once these are fixed I will check and approve, nice work!

@mikeschen mikeschen added the enhancement Improving existing functionality label Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants