Wp File Upload Security

Implement or audit secure WordPress file uploads and sideloads with media_handle_upload, wp_handle_upload, wp_check_filetype_and_ext, strict MIME/extension allowlists, capability and nonce checks, size limits, collision-safe image format conversion, EXIF orientation, attachment cleanup, SVG/archive policy, remote download cleanup, and private file storage. Use when code handles $_FILES, multipart forms, REST uploads, Media Library attachments, post-upload image conversion, imported remote files, ZIP extraction, or custom download endpoints.

Lonsdale201 Updated

File contents

Lonsdale201/wp-agent-skills/tree/main/wordpress/wp-file-upload-security commit 5a3913c8fa

Frequently asked questions

npx skillmds@latest add lonsdale201/wp-file-upload-security