Single file upload

I would like to allow user to only upload one file at a time using the flash uploader interface. I found around here a link to a hack allowing to generate an error message when more than one file is selected but that's not what I want. I would like to only take the first file into consideration and just ignore the other files.

Would it be possible?

Topic single flash uploads media Wordpress

Category Web


You can just grab the first file in the $_FILES array.

if ($_FILES) { return $FILES[0]; }

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.