Connect with Expertise | Find Experts, Get Answers, Share Insights

Multiple image upload form

 
Join Date: Nov 2008
Posts: 14
#1: Mar 13 '10
How do i allow users to upload a minimum of 1 and maximum of 10 images? What is the best way to code this solution?

acoder's Avatar
E
M
C
 
Join Date: Nov 2006
Location: UK
Posts: 14,979
#2: Mar 15 '10

re: Multiple image upload form


In your HTML code, have up to 10 input file fields with different names, e.g. file1, file2. A loop may help here, and you could keep a count or just make sure the files are numbered sequentially. You could improve this by only showing one and an add button for the rest up to a maximum of 10.

On the server-side, use a loop for each upload file. If one doesn't exist, stop. Here you could use the count, but don't necessarily depend on it.

If you need any help with the coding, post your code.
 
Join Date: Mar 2010
Posts: 1
#3: Mar 19 '10

re: Multiple image upload form


Give the CFMU project a try: http://cfmu.riaforge.org/

Also, Coldfusion 9 has a built-in multiuploader: http://www.remotesynthesis.com/post....n-9-in-5-lines
Reply

Tags
multiple image upload, upload