Skip to content

Improve efficiency and security#1

Open
rusleak wants to merge 2 commits intoKalebu:masterfrom
rusleak:fix
Open

Improve efficiency and security#1
rusleak wants to merge 2 commits intoKalebu:masterfrom
rusleak:fix

Conversation

@rusleak
Copy link
Copy Markdown

@rusleak rusleak commented May 13, 2025

Add timeouts, exception handling, unique filenames, and file type checks to improve safety and efficiency.

  • Timeout for HTTP requests and image downloads to prevent hanging.
  • Handle request and image download errors gracefully.
  • Ensure only .jpg and .png files are downloaded.
  • Prevent file overwriting by adding UUIDs to image filenames.

rusleak added 2 commits May 13, 2025 14:18
…cks to improve safety and efficiency.

- Timeout for HTTP requests and image downloads to prevent hanging.
- Handle request and image download errors gracefully.
- Ensure only `.jpg` and `.png` files are downloaded.
- Prevent file overwriting by adding UUIDs to image filenames.
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