nextcloud / files_antivirus

👾 Antivirus app for Nextcloud Files
https://apps.nextcloud.com/apps/files_antivirus
GNU Affero General Public License v3.0
81 stars 33 forks source link

fix: scan files uploaded to the bulk endpoint #354

Closed st3iny closed 1 day ago

st3iny commented 3 days ago

Fix #219

The bulk upload endpoint uses file_put_contents instead of writing a stream.

Ref https://github.com/nextcloud/server/blob/9d4b9440986afddc28dad99c7987f9c31513ae9f/apps/dav/lib/BulkUpload/BulkUploadPlugin.php#L75 Ref https://github.com/nextcloud/server/blob/ffced73a7110fbe8540701da16a278ddaa48306d/lib/private/Files/Node/Folder.php#L163