Skip to main content
May 7, 2013
Answered

How to upload multiple images

  • May 7, 2013
  • 1 reply
  • 742 views

Hey folks.

     I have 10 file upload files for users to upload up to 10 different images into the same folder, but not sure how i should go about it. I did 10 different inserts, but it seemed very "chicken scratch" type coding. Not sure how to do it any other way, which brings me here. Can someone give me some direction on how to do it better?

I should say i have 10 different upload fields because i need the files to be named something like "page1.jpg, page2.jpg....etc". I could be doing this wrong too. I don't know. Any advice will be great.

Thanks

    This topic has been closed for replies.

    1 reply

    WolfShade
    WolfShadeCorrect answer
    Legend
    May 7, 2013
    December 18, 2022

    link is dead

    Charlie Arehart
    Community Expert
    Community Expert
    December 18, 2022
    1. Well, the post offering that link is from 2013. And the post it points to is from 2010. Just clarifying that it's not so surprising that such an old reference to such an old link might be "dead".
    2. Did you know you CAN often find even such old content, having been archived by the good ol "internet archive"? Just put web.archive.org in the front of the url (even in front of the http://), as in this. Then go to the capture from back then, like this. Fwiw, I have a blog post with more on using that service this way.
    3. No one mentioned in this thread here that the feature Ray was discussing in his post was the cf9-era cffileupload tag (or script statement, as of cf11). You can of course find more about that in the cfml reference page on it, but note that it was flash-based and has since been deprecated (as discussed there).
    4. So as for other ways to upload more than one file in a given web page, there are various other solutions having nothing to do with CF specifically. It's not clear if you may already know about those. Google searching will turn up options. 
    5. You may find value instead in the server-side cffile action="uploadall", which is discussed instead in the cfml reference here. That's for processing if multiple files may be uploaded via some other ui feature (such as a js-based one not offered via cfml)

     

    Hope all that's helpful. 

    /Charlie (troubleshooter, carehart. org)