I have done this for a client's FTP site - but I use jClientUpload by
Javazoom to handle uploading the multiple files - that way people can also
drag and drop files into it. (Mac and Windows) It's pretty handy and was
relatively easy to install - but I will admit to having loads of issues with
user's corporate firewalls and/or not having java installed. (but that's all
stuff that is on their end and nothing I can control... that I know of.)
I upload all the files into a directory - and have the project reference
that directory. (The directory is named after the project UUID) So, I am not
limiting the users to only four files - and I am not saving the file names
to the database - - which may both be issues for you. But I know it can be
integrated with image scaling, and you can filter it to only upload the file
types you want.
To get at the files I use:
<cfdirectory
action="list"
directory="#ProjectDirectory#"
name="qryProjFiles" />
And then loop through the list.
Not quite what you are doing - but that's how I did it.
- Nick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3113
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15