hotosm / tasking-manager

Tasking Manager - The tool to team up for mapping in OpenStreetMap
https://wiki.openstreetmap.org/wiki/Tasking_Manager
BSD 2-Clause "Simplified" License
510 stars 275 forks source link

Error message not displayed when AOI file exceeds size limit during project creation #6644

Open manjitapandey opened 6 hours ago

manjitapandey commented 6 hours ago

Describe the bug While uploading an AOI file larger than 1MB during project creation, no error message is displayed, when the file size exceeds the allowed limit. The file is neither uploaded nor any error message is provided, leaving the system unresponsive.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Manage project'
  2. Click on 'create new project'
  3. Upload 'AOI greater than 1 mb'
  4. See error

Expected behavior The system should display a clear error message indicating that the file exceeds the 1MB size limit, such as: "The maximum file size limit is 1MB. Please upload a smaller file."

Screenshots Image

Additional context Raised by Sophia on tasking manager channel. https://hotosm.slack.com/archives/C319P09PB/p1732208736215749