I have used CGI::Simple
in the past, for a general purpose upload processor. I apparently used an internal method called upload_fieldnames
, which returns an array of field names that are uploads.
I am trying to adapt this code to use CGI.pm, because it is more commonly available for CentOS 7. How would I get a list of only file upload fields? All of the examples I've found use known field names, which I don't know in advance. Other fields might be submitted with the form, and I only need to act on the ones that provide a file upload.