This is part of that CFPOP thing you are working on I guess
...
If the data is not time sensitive, I would probably suggest
doing something a bit different and running the task at set
intervals ... maybe once or twice a day or something.
Based on what I have skimmed through regarding that project,
I think you should have the CFPOP service save the attachments to a
set directory reserved for the CSV files (I think you are doing
that already). Make sure they have a CSV extension.
Separate from above, in the task page, use CFDIRECTORY to get
a list of all the CSV files, filtered by *.CSV, so it ignores any
other possible attachments that show up.
Loop through this list and read each file using CFFILE then
add the data from that CSV to the database.
Once completed, move to the next file.
When all the CSV files in that current list are read and
entered, use the list again to delete the files already used so
they do not get entered again.
This is a very grassroots approach to what you want to do,
but would run w/o any need for forms and could process within a
silent task page via scheduler.