Skip to content

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