File Uploads instruction modules for AI agents — part of Security on Markdowners.
Security → File Uploads
Handling user file uploads safely: validating type by content not extension, enforcing size limits, re-encoding images, storing outside the webroot, random filenames, never executing from upload dirs, malware scanning, and correct serving headers.
by @markdowners