mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-18 02:32:04 -05:00
Files processed via local paths in store_media_file() were not being scanned through ClamAV, unlike URLs, data URIs, cloud paths, and workspace references which already had scanning. This gap affected video processing blocks (LoopVideoBlock, AddAudioToVideoBlock, etc.) that write output to temp directories then pass filenames to store_media_file(). Changes: - Add virus scanning to the local file path branch in store_media_file() - Add file size limit check consistent with other input types - Add unit tests for local file scanning behavior Closes SECRT-1904