PHP·98 questions

How to securely upload files?

Answer
Check MIME type (finfo).
Do not trust the extension.
Store outside webroot.
Generate new names.
Limit size.
Was this answer helpful?

More questions in this topic

Related questions from other topics