Download multiple Images

Hello
The answer to this question is probably sitting right in front of me, but I can't understand this. It is a page of loading image that downloads multiple images to my SQL db. (I'm using CF 7.0) I have a form called "pick.cfm" that the user enters the number of images to download. This page also sets the #cookie.micro # in the code referenced below. #cookie.micro # is the number of images to download.

The problem is, if I upload two images, for example, named "abc.jpg" and "def.jpg" the file names are inserted into the database as "abc.jpg" (correct) and 'abc1.jpg (not good).

It is of the form:

< action = "testingform_action.cfm cfform" enctype = "multipart/form-data" method = "post" > "


< cfset numberoffields = #cookie.micro # >



< cfloop index "i" = to = "#variables.numberoffields # '1' = ' step '1' = >"
< cfset filename2 = "form.file" >
< cfinput type = "File" name = "micro" value = "#variables.filename2 #" / > < br / >


< / cfloop >


< cfinput type = "Submit" name = "upload" value = "upload" >

< / cfform >



It's the action page:


< cfloop index "i" = to = "#cookie.micro # '1' = ' step '1' = >"

< cffile destination = "d:\Inetpub\wwwroot\pulse\pathology\pia\images\".
action = "upload".
accept = "" image / * ""
nameconflict = "makeunique".
FileField = "micro" >




< cfquery datasource = "pathimage" name = "insertimage" >
Insert into images (filename) VALUES ('#file.) ServerFile #')
< / cfquery >



< / cfloop >


What is the cause? I'm sure that it's simple, but I can't understand. ANY advice you could give would be so appreciated!

Alison

I guess that its because all file fields all have the same name. Try to name them dynamically: micro1, micro2, Inc.3, etc..

A few minor comments on the code

-As far as I know, if the VALUE has no effect to the input fields when type = "file".
-FILE is obsolete. Use CFFILE. ServerFile instead
-You don't need signs # here

Not tested

Tags: ColdFusion

Similar Questions

  • Ability to download multiple images at the same time on Windows?

    I would use Revel for storing my photos, but must be able to download my photos to have a personal backup. I intend to have my updates have taken place since my Android phone, but when I try to download on the site it just allows me to upload one image at a time. Is it possible to download multiple images / my entire library when you run Windows?

    You are right on adoberevel.com, you can only download one photo at a time. Mac app allows the selection of a group of files to download. This feature has been requested for other platforms and is on the wish list for consideration in future versions of revel.

    The other option is of 12 elements. Users who have their pictures put in place in mobile albums in the organizer of items have a current automatic synchronization between the organizer and revel. If you put autoupload in place on your mobile devices, this essentially gets then you a copy on your computer and access to a copy in the cloud on all of your devices.

    Guinot

  • How to download multiple images to d-base through a single page?

    I can upload a single image with a shape to my MySql database without problem.  It sends the name of the file to the database, and then saves the image in an image file.

    But now I want to download multiple images in the same way from the same PHP page.  Each multiple upload must be stored at a single record (the designated user who is connected).  I have a field for each image in the database.

    This can give you a better idea of what the database looks like:

    ,
    Username ID image1 image2image3
    scmeeker5Dotty.jpgHello.jpgKitty.jpg
    jdmeeker7

    So now, I want to download multiple images for each field of the image.  When it works properly, it should send the name of the image file in the appropriate field and then send the image to the folder of the image.  I have tried several ways with no luck at all.

    Anyone have any ideas?

    Thank you!

    I think you'd be better to have two tables in your database. One would be a users table that has all user data, including a userid (the primary key of that table), and the foreign key to another table. The second would be an array of images. You would use the images download table infinite (well, as much as the PB can manage) images. The thing is that each record in the table images would have a foreign key, which would be the user id for the user who has downloaded.

    This way your users would be not limited to three images but could download as much as you want to allow them. The association of the id of the user, which must be unique for each record in the users table (there may be duplicates, it should be your primary key on the users table), the user id in any number of records in the table of images is allowing this work.

    EX:

    The users table

    user_id what L_Name E-mail other_info
    100001 first last [email protected] ...
    100002 What L_Name [email protected] ...

    Table of images

    image_id CBC user_id
    10000000001 /db_imgs/img1.jpg 100001
    10000000002 /db_imgs/img2.jpg 100001
    10000000003 /db_imgs/img3.jpg 100002
    10000000004 /db_imgs/img4.jpg 100001
    10000000005 /db_imgs/img5.jpg 100001
  • Help? I can not download multiple images.

    Several downloads didn't work due to a message that says: "damaged or insight that cannot be accepted. Help? I am still charge for these.

    When you view the details of the image it tells you where it says "Type of file. If you want to be sure not to have to worry about this, just uncheck "Vectors" of your search.

  • How to download multiple images

    Hey people.

    I have 10 files download files for users to download up to 10 different images in the same folder, but do not know how I should go about it. I made 10 different inserts, but he seemed very 'chicken scratch' encoding type. Don't know how to do otherwise, which brings me here. Can someone give me advice on how to do better?

    I must say that I have 10 download different fields because I need the files to be named something like "page1.jpg, page2.jpg... etc. I could do this wrong too. I do not know. Any advice will be great.

    Thank you

    http://www.raymondcamden.com/index.cfm/2010/3/5/ColdFusion-9-multifile-Uploader--complete-exemple

    ^_^

  • Is there a quick way to get rid of multiple copies of images? Bridge CS6 copy all photos of every time I try to download new images.

    I started using only bridge on a regular basis (CS6, Mac). Found out that it is downloading multiple copies of images every time I connect to my picture card. Is it a relatively quick way to get rid of these multiple copies?

    Hi BudWashington,

    Please check the link for the correct workflow below.

    How to download pictures from your camera with Adobe Bridge CS4

    Kind regards

    ~ Mohit

  • When sending multiple images to photoshop camera raw, no images are displayed in photoshop.

    I send multiple images in camera raw to the bridge as part of my work. I make my changes and then select them all and click on the button "open the Images. When I did earlier using Photoshop CS6, all these images open in Photoshop CS6 and be aligned at the top of the window. Now that I have Photoshop CC, when I click on the button 'open image', I'm being transferred to the CC of Photoshop, but some images are open upward. Only a few hours after I downloaded Photoshop CC, Images have been sent there by Camera Raw, but they were sent one by one. I had to finish the job on a single photo, save it, then another of the images I sent Camera RAW would show up. Now, back to Photoshop after a break of 3 hours, I can not camera raw to send images Photoshop CC. I had to go back to my Photoshop CS6 in order to continue work on my assignment. I knew that there will be some changes in CC, but do not think they would be this boring.

    Also, in order to get several images displayed in Filmstrip mode in Camera Raw, apparently I have to send via Bridge. I can't drag and drop a folder into Photoshop CC. Is there a way around this?

    Hi terryleemartin,

    If please check, is your Photoshop and Bridge are updated to the latest version.

    In addition, reset the Photoshop preferences default back so if there is no change in the settings of this problem.

    Reference: Preferences in Photoshop

    Kind regards

    Mohit

  • Where did the installation to print multiple images per page?

    The Panel on the right in the 'Print' module has changed. Previously, the Committee was up and down, 'Image Settings', "Rules, grids, and Guides," 'Cells', 'Page', and "Print Job" with the 'cells' dropdown that gives me the choice of "add to package" where I could easily add and adjust the size of the cells. Now, (I have not downloaded anything) panels has from top to bottom, 'Settings of the Image', 'Layout', 'Guides', 'Page' and "Print Job" and I don't see a way to print several images (either the same of different images) on the same page.

    This should really be in the Lightroom forum!

    However, on the left side of the scree we do not, what are the parameters? They must be defined for a multiple-image document and not as I suspect one presented here.

  • How to download multiple files from creative cloud

    I downloaded about 30 photos of creative cloud storage. Now, I can't find a way to download a group or all at the same time. You can select multiple and move to different folders within CC, but can not download multiple. I had known this before using it, I would have done a zip of images folder. It seems a bit awkward, if this is true.

    [email protected]

    Thanks for the info. As a professional user, more features in storage would be useful. At the moment I am using to other file storage and transfer solutions that are far superior.

    I think most of the users of cloud would very well agree with you.

    The cloud is now a reasonable version 1, but it is clumsy, he lacks the basic features and is a latecomer to a mature market quickly. Other offers currently shine in comparison.

    Our expectations as consumers are very high, because we are accustomed to the are (and other superior 3 third-party solutions) there.

    Adobe has been flooded with suggestions of features and improvements from users. The more, the better.

    They could, as they claim, work on improvements, but they move on until the cloud tarnishing its own reputation too due to the lack of (expected) features.

    [email protected] wrote:

    Furthermore, the links in your post do not lead anywhere.

    Jive forum software used by Adobe creates bad links.

    Correct links are:

    Three things I'd like to see...

    http://forums.Adobe.com/ideas/1789

    Three ideas: file sharing, channel, branded email notification

    http://forums.Adobe.com/ideas/1706

    Share files and channel brand?

    http://forums.Adobe.com/ideas/1701

  • Thunderbird will download multiple copies of email with large attachments; about half a Meg or more.

    Have uninstalled and re installed TB; still had the problem so deleted files popstate.dat; three old and I guess that the other two were for both accounts I have. Sometimes I go to the server/webmail and delete the large email to stop repeated downloads.
    Bill

    I tried a different e-mail program, and it did not download multiple copies. Tried to uninstall TB new and removed the front profile of re install and still had the same problem. One of the large files sent to my friend that I had installed TB on his computer for him and he doesn't have the problem. So I changed my email from POP3 to IMAP and now it seems that the multiple download problem disappeared. I would like to know well why I had a problem and my friend (and others) do not have.

  • Whenever I have download an image with the command "save the image under...". ", it records in a useless file of 168 bits.

    As stated, whenever I have download an image with the command "save image under" he recorded in a useless file of 168 bits. This does not happen everytime I have save an image, but more often the not, and I don't have a lot of useless files hang out because of this. Is it possible to re - download each image 168 bits that he should have been downloaded in the first place? Is it possible to ensure that this does not happen?

    Here's what it looks like:
    http://i.imgur.com/yzgwwgC.gif?1

    This means that you are not allowed to do this action.
    The site could use a transparent overlay image to protect the actual image or otherwise has put in place a protection.
    You can check if see you the image in "tools > Page Info > Media ' and save it.

  • How can I download raw images in the photos of el capitan?

    How can I download raw images in the photos of el capitan?

    What camera?

    What happens when you try?

    RAW + JPEG you use?

  • Download problems image cable Canon camera

    I have a brand new computer laptop Mac Book Pro with OS El Capitan, and I am trying to download my pictures from my compact camera Gx1 to the laptop via the camera download cable. Of course I've already installed the Canon Canon Utilities Window /Camera of its CD image software (has been attached to the camera when it was purchased). (The Canon EOS Utility software, which I also installed it, is exclusively for my Canon EOS camera models). However, the download of the image does not work either.

    Images are downloaded into the folder Mac (program?) "Bilder" (*) (Images (?) in the version of Mac OS English?) where I certainly don't want to, I want to download my images in my own folder structure that distinguishes for example camera model/date photo taken/RAW files or jpeg etc. The folder Mac (program?) "Bilder" (Images (?) in the version of Mac OS English?) may be authorized to store the images simple iPhone 6s I take, but certainly not Raw files of my actual cameras!

    (*) "Bilder" (Images (?) a multicolored a little icon circle in the operating system Mac - Mac (program?) file

    The thing very strange, as the first two weeks of use my brand new computer computer laptop Mac Book Pro, the image download to the Mac via the cable from my camera Canon G1x worked as planned, but AFTER I once (the first time ever to purchase date computer I tried to upload pictures to my iPhone 6 s new Mac) I downloaded images to the Mac from my iPhone 6 s via the cable of the iPhone, the camera G1x download system image failed. I seems as if my download of images from the iPhone 6 s "Insider" start-up of the Mac OS (program) folder

    the 'Pictures' folder (Images (?) in English Mac OS version?) and the laptop Mac assumes that I want to download all the images, as for example my G1x camera RAW files in the 'Pictures' folder (Images (?) in the version of Mac OS English?).. . DEFINITELY NOT!

    I am terribly frustrated now and do not feel the I get any understanding or assistance from Apple support.

    This description of the problem will also be sent to the camera of Canon Inc., informing them of my issues with Mac OS El Capitan.

    Someone experienced with Mac, a friend of mine, said that "as usual, Apple"cache"the images and makes them normally inaccessible in the Finder. If you want to work wth them in another program (also), you must export the images of "Bilder" * (Images ()) - not at all practical, which means that two copies of images.

    Joined 9 screenshots - .png and .jpg files (. png files show how Mac views are displayed, show the .jpg files "how it should be regarded with correct download cables", the screenshots of the interface come however from a laptop with XP Home, not Mac OS operating system.

    The first two weeks of work with my Mac, the 'Download desired cable interfaces"WERE EVEN in what concerns the PC referred to above.

    Hi CanalogSE,

    Welcome to the communities of Apple Support! I'm sorry to hear you're having problems with your new Mac. You're talking about the 'Bilder' application seems to be the new application Photos, replacement of preparations on the previous iPhotos. If you wish, you can read more about it here:

    Apple OS X - pictures.

    Start with Photos for OS X - Apple support

    From your description, it seems that if you have connected your iPhone to import your photos, she may have inadvertently changed the overall picture import settings by launching Photos for the first time (since importing default photos for devices iOS in El Capitan's Photos). If you want to change the application for importing photos by default for when you connect your Canon Gx1 (for example, for the Canon software), you should be able to get rid of it in another application called Image Capture; I'm not clear what would be the name translated, but it should have this icon:

    Image Capture help

    In the Image Capture with your camera connected, you should see an option in the lower left corner to opens the connection this [device]: which will allow you to select your preferred; application If you don't see this, you may need to click on the the icon to display these options.

    Concerning

  • VBAI acquire multiple images

    Hello

    We work with VBAI 2012 and we want to acquire multiple images as quickly as possible one after another to decide what is best for the inspection. Is it possible to take for example 5 images one after the other, or what I call the image to acquire five times?

    Thank you

    Oliver

    Why not continuous use to acquire images and use 5 as the number of buffers required?

  • Acquire and process multiple images

    Hi, I use an acquisition card NI PCIe-1427 and tried acquisition and treatment of multiple image permanently. To be more precise, how can I extract a buffer of 4 images and perform some processing on the 4 images? For the examples, I can acquire 1000 images (or continuous), but must be extracted 4 images each time to combine them into a single image before saving the final image (on the handset). Thank you for viewing and comment. I woild appreciate if there are examples that I could learn too.

    Hi sp@davis,

    Did you look at This example that passes by sewing and processing of a video stream? There are tons of examples of different types of image processing on the community of NOR (like this one) If you have a type of mind-specific treatment. I hope this helps!

Maybe you are looking for

  • Is it possible to tell FF to ignore the stories of specific tracking site?

    I don't like how inflated my story becomes after a day to manage my gmails personal and work, as well as my staff and society facebook sites. It hides all the other web traffic I did I actually want to see. I don't want to completely ignore these sit

  • Download Service Pack 2 or later on a disc

    I have an old computer in my office not connected to the internet, and I just bought a new printer that requires the Service Pack that is not on the old computer. Can I use another computer connected to the net to download service Pack 2 on a drive a

  • EqualLogic PS6000 Serires IP address changing

    Hello My logic equal group IP is 192.168.0.1 and my two other members of storage are 192.168.0.2 and 192.168.0.3 no port management "management of ports are not configured and is unable to be present due to the direction and iscsi are on the same sub

  • Problems of GANYMEDE

    I'm unable to authenticate using AD Ganymede credentials on a router, but I can access local user account. It's a router moved to another site where he was working, but now is not. The IP is the same. I have attached one that works. Can someone tell

  • Cisco vpn client is supported on the analogue ppp connection

    can someone pls tell me if we can use the client vpn cisco on a ppp connection analog and put a pix that is not PPPs running. If it works, then why do we need to VPN L2tp/ipsec. can someone pls tell me something abt it. It is very urgent. concerning