Function for uploading  multiple images, say 5000 , of any type?

Hi,
I want to upload multiple images which are stored anywhere, be it a local system or a server, to the SAP database just by clicking a single button. The method should be able to pick all the images and check their file types and upload it.
My concerns are that:
1. How to specify the path where the images are stored?
2. How to check the extension of the different files. it is possible that the folder may contain some other file types? So how to distinguish between them?
3. How to deal when the folders may contain some subfolders?
4. How to display the uploaded images back to the user?
Regards
Amit Kumar Singh

I would guess its because all of the file fields all have the
same name. Try naming them dynamically: micro1, micro2, micro3,
etc.
A few minor comments about the code
- Afaik, setting the VALUE has no effect for input fields
when type="file"
- FILE is deprecated. Use CFFILE.ServerFile instead
- You don't need # signs here <cfset numberoffields =
#cookie.micro#>
Not tested

Similar Messages

  • I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    Logged the call with SAP who directed me to 'Define settings for attachments' in IMG and setting the 'Deactivate Java Applet' & 'Deactivate Attachment versioning' checkboxes - problem solved.

  • Can't upload multiple images to Facebook album through Safari

    I switched back to Safari on my Macbook Pro after downloading Yosemite. I heard it was the best browser for the new OS.  I am experiencing problems uploading multiple images to a Facebook album. I have to go back to the basic uploader and upload them one at a time. Is there a fix?

    Thanks for a reply.
    I've signed in already and it works with few images. But when i try to share large amount of images ,the menu "facebook" was disappeared.

  • How do I upload multiple images to d-base through a single page?

    I can upload a single image with a form to my MySql database with no problem.  It sends the file name to the database then stores the image in an image file.
    But now I want to upload multiple images in the same way from the same PHP page.  Each multiple upload needs to be stored to a single record (designated user that's logged in).  I have a field for each image in the database.
    This may give you a better idea of what the database looks like:
    Username
    ID
    image1
    image2
    image3
      scmeeker
    5
    dotty.jpg
    hello.jpg
    kitty.jpg
    jdmeeker
    7
    So now I want to upload multiple images for each image field.  When it works correctly, it should send the name of the image file to the proper field and then send the image to the image folder.  I've tried it several ways with no luck at all.
    Any one have any ideas???
    Thanks!

    I think you would be better off having two tables in you database. One would be a users table that has all of the user data including a user id (the primary key for this table and the foreign key for the other table). The second would be an images table. You would use the images table to upload infinite (well, as many as the db can handle) images. The trick, is that each record in the images table would have a foreign key, which would be the user id for the user that uploaded the image.
    This way your users wouldn't be limited to three images but could upload as many as you want to allow them to. The association of the user id, which has to be unique to each record in the users table (there cannot be duplicates, it should be your primary key on the users table), to the user id in any number of records in the images table is what will allow this to work.
    EX:
    The users table
    user_id
    f_name
    l_name
    email
    other_info
    100001
    first
    last
    [email protected]
    100002
    f_name
    l_name
    [email protected]
    The images table
    image_id
    src
    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

  • How can we add a control on our .jsp webpage for uploading several image fi

    How can we add a control on our .jsp webpage for uploading several image files as done in gmail attachment, Where a Remove button also appears if we wanna remove the particular attachment.

    The SCOM Management Server is in Domain A.  I've tried it already and it has failed.  
    So just to clarify the method I used was to go to Administration>Security>User Roles.  Then New User Role>Read-Only Operator.  In the Create User Role Wizard I then gave the User Role a name, Clicked "Add" under User Role Members.
     Then the Select Users or Groups window pops up and I changed the Locations from Domain A to Domain B and searched for the user, which it's able to find, then clicked "OK" to add it to the User Role members which it does just fine.  On
    the next page which is Group Scope I checked the one group I want this account to have access to and then click next.  This brings me to Dashboards and Views where I click the radio button for "Only the dashboards and views selected in each tab are
    approved" and chose the folder of dashboards I want this account to access and then click next.  This brings me to the Summary and I click "Create".  At this point it thinks for a moment then closes out the wizard but the new Read-Only
    Operator does not appear.  I then look in Event Viewer and see the Event I pasted above.
    Am I doing something wrong here?  Any guidance on how to get around this issue would be much appreciated.
    Thanks,
    Jake

  • I use "element 12" and want  like in the old PS version due Automating and Contact  II upload multiple filesand print them with any columns and rows on the same page . How does it work?

    I use "element 12" and want  like in the old PS version due Automating and Contact  II upload multiple filesand print them with any columns and rows on the same page . How does it work?

    Can you supply a link?

  • How we can upload multiple images in particular id in sharepoint

    WE have some legacy systems in that we have multiple images for perticuler patient. How can i migrate that all related images into perticuler patient while uploading to share point site...can you help for the same 
    another issue is which task(component) is used for migrate the images into CRM destination---I mean which transformation is used for implementing ETL packages in ssis 

    Hi,
    You have posted your question on the MS Project forum which is dedicated to the Microsoft scheduling and planning software. Eventhough most of us have basic/advanced knowledge on SharePoint, I suggest that you posted your question on the Sharepoint forum
    http://social.technet.microsoft.com/Forums/en-US/home
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Uploading multiple images with DW CS4

    Hi,
    I am looking for help todesign a form that allows uploading several images for each registered user. I am ew to PHP/MySQL and would like an example please. Thanks

    Lots of help and examples can be found here:
    http://google.com/search?q=php+multiple+file+upload

  • Any way to upload multiple images without renaming?

    The multiple image upload seems to enforce a renaming convention and the
    creation of restricted user backup folders or new folders.
    Is there a way to just upload multiple files to an existing folder and just
    allow renaming or replacing of images, but still resizing? This procedure
    seems to work fine on individual image uploads in an update or insert record
    behavior....
    Maybe I'm missing something, but I was getting all sorts of directories
    being created and couldn't load the new files with their current name into
    the directory I actually wanted...
    Jeff

    Post Author: norton
    CA Forum: crystalreports.com
    Hi Dixie,
    You seem to be asking all the right questions lately!
    Right now we do not have any way of uploading multiple docs at once.  We do have the desktop publisher tool that helps with automatically refreshing a report and uploading it, but it is still handles them on an individual basis.
    However, with our next big release (planned for the middle of December) we are planning to add a new batch task to the desktop publisher.  The intent behind this is that you can set up your folder and document structure on your local file system and use the batch task to upload everything to your cr.com account.  This would include creating the necessary folders in cr.com.  You will be able to schedule this batch task like you do the existing individual tasks so that it runs once a week or whatever you like.
    This new batch task will NOT allow you to refresh any reports before uploading them though.  Everything will be uploaded as is.
    Hopefully this will help with what you are trying to do.
    Steve

  • Can I create an email form that includes a field for uploading and image?

    I'd like to create an email form in Muse that allows people to submit the usual text but also allows them to browse for and upload an image that would be emailed (attached or inline) to me along with the text.
    Does anyone know if there's a way to do that directly in Muse?
    Thanks.

    Which form?
    Many of the forms are created with LiveCycle ES so it might be possible to edit the form with Acrobat X Professional. If you have the data in an SQL database, you could possibly create a data connection and import the data into the form and save a copy of the completed form. You can also use the Acrobat JavaScript 'importTextData' to import a row of data from a tab delimited data file.
    You might want to talk to other Real Estate professionals to see how they are going do this. If you have a property management program, that program might have an update to perform this task.

  • Uploading multiple images

    Trying to think of the best way to upload as part of a form
    an undefined number of images... i thought about storing the images
    in a database while uploading image by image, but then if the user
    closers the browser before submitting the form then all the images
    and records of the images will be stored on the server..
    Is there a better way to go about this?
    I was thinking like storing the filepaths in a session or
    something?

    Your question motivated me to write this code. It
    simultaneously uploads 3 images to the current directory.

  • Utility for uploading multiple RDL to SSRS server

    Hello,
    Is there a tool existing or is MS coming up with a way to upload multiple RDL's (created on SSRS 2005/2008) on SSRS at one time instead of having to do it one by one or having to write code?

    Hello,
    You can use the
    RS.exe Utility (SSRS) to deploy your reports; see also
    Scripting Deployment and Administrative Tasks
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to upload multiple images

    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

    http://www.raymondcamden.com/index.cfm/2010/3/5/ColdFusion-9-Multifile-Uploader--Complete- Example
    ^_^

  • Lost functionality for selecting multiple photos?

    In iOS previous to 5 I could go into my imported photos, choose select, then tap, hold and drag my finger across multiple photos to select a whole page very quickly. This functionality seems to be gone in iOS 5 and each individual photo needs to be tapped -- one by one. This is a serious step back for those who import many photos from their camaras and then want to clean out the imported photos quickly. Can anyone confirm this functionality is still there and perhaps I am not seeing how to do it?

    I don't whether it was possible prior to iOS 5 (I'm not aware that it was), but I don't appear to be able to do it in iOS 5

  • Code for uploading larger image or any file object

    I have this code which is working file for files <500 KB
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package controller;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.PrintWriter;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import java.util.Properties;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.Part;
    * @author Chinmay
    public class ProfileImage_Update extends HttpServlet {
         * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
         * @throws ServletException if a servlet-specific error occurs
         * @throws IOException if an I/O error occurs
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            Part p = request.getPart("file");
            InputStream in = (InputStream) p.getInputStream();
            byte[] b = new byte[in.available()];
            in.read(b, 0, b.length);
            Connection connection = null;
            PreparedStatement stmt = null;
            HttpSession session = request.getSession();
            String username = (String) session.getAttribute("username");
            try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                Properties properties = new Properties();
                connection = DriverManager.getConnection("jdbc:odbc:sn", properties);
                stmt = connection.prepareStatement("UPDATE Photos SET Photo = ? WHERE username = ?");
                stmt.setBytes(1, b);
                stmt.setString(2, username);
                int rows = stmt.executeUpdate();
                if (rows > 0) {
                    RequestDispatcher view = request.getRequestDispatcher("Home.jsp");
                    view.forward(request, response);
            } catch (ClassNotFoundException ex) {
                out.println(ex);
            } catch (SQLException ex) {
                out.println(ex);
            } finally {
                in.close();
                try {
                    connection.close();
                    stmt.close();
                } catch (SQLException ex) {
                    ex.printStackTrace();
                out.close();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
         * Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
         * @throws ServletException if a servlet-specific error occurs
         * @throws IOException if an I/O error occurs
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            processRequest(request, response);
         * Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
         * @throws ServletException if a servlet-specific error occurs
         * @throws IOException if an I/O error occurs
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            processRequest(request, response);
         * Returns a short description of the servlet.
         * @return a String containing servlet description
        public String getServletInfo() {
            return "Short description";
        }// </editor-fold>
    }But when i give file which is greater than 500 KB it shows the following error. What can be the problem???
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]The text, ntext, or image pointer value conflicts with the column name specified. i have tried with compression logic but still i cannot get. what can be the problem in this case???
    I am using SQL server 2005.

    Maybe this site will have some useful info.

Maybe you are looking for

  • Search Bar is not working for me in windows 7 32 bit OS

    Search Bar is not working for me in windows 7 32 bit OS'''bold text'''

  • TB 500: use VGA or DVI w/adapter?

    I need to add an ext. LCD to an original TiBook 500. Does it make any difference in PQ if I get a PCMCIA/DVI card instead of using the VGA port? Thanks.

  • Javascript function call

    i am writing a jsp code, where i have put 2 functions in jscript, lets say f1() and f2(). I need to call f1() only once in the start of the program, while i have to put the second function f2() in a loop after that, lets say 100 times. I dont know ho

  • [JS]Place more than single pdf via js

    Hi noob needs advice: - In the default PLACE dialog(cmd+d/ctrl+d)I am able to select more than just one file to place. Thats what i need When I use this js code it allows me to place just one pdf. Is there a way to select and place more than just one

  • Mighty mouse in bootcamp not working

    Hi Team. I have just installed Vista Ultimate and the newest drivers for it from apple (the new exe download) Its all gone well and I am typing to you from the apple wireless keyboard. However the wireless mighty mouse is not working. I followed this