How to upload multiple files using wicket

Hai,
how to upload multiple files using wicket at a single browse.
any suggestion?
Thanks in advance

You have to do this your self by either (as vinod said) using a different component (not present in adf) or implementing this:
1) allow the user to select multiple filenames (somehow)
2) zip them together
3) upload the zip
4) unpack the zip on the server
5) work with the files
Timo

Similar Messages

  • How to upload multiple files using af:inputfile

    Hi,
    I am using J dev 11.1.1.3. I have a requirement wherein i need to upload multiple files using af:inputfile. Can we do in it ADF ? Is there any other work around to implement the same. I have checked previous questions but not able to find proper solution for this.
    Any pointer in this regard is highly helpful.
    Regards,
    Kalyan

    You have to do this your self by either (as vinod said) using a different component (not present in adf) or implementing this:
    1) allow the user to select multiple filenames (somehow)
    2) zip them together
    3) upload the zip
    4) unpack the zip on the server
    5) work with the files
    Timo

  • How to upload multiple files in Webdynpro using File upload Screen Element

    Hi Experts,
          Can anybody tell me how to upload multiple files/pdfs in webdynpro using file upload screen element, and also please tell me what is the maximum storage limit of RAWSTRING data type,Advance Thanks.
    Regards,
    Sandesh

    Hi Sandesh,
    this is simply not supported, not in WebDynpro nor in standard HTML.
    A workaround is to upload a ZIP with all files and on server side unpack the ZIP and operate on the single files.
    I hope it will  help u..
    ----------------------OR-------------------------
    As you know using File upload UI element we can upload only one file at a time. There may be a scenario where user may want to upload any no of files at a time which is not determined at design time. This can be acheived using the ACF UpDownload UI element which requires a security whiltelist to be created
    http://scn.sap.com/docs/DOC-2270
    ----------------------OR-------------------------
    You can use Table UI element.
    Regards,
    Deepak Singh

  • URGENT: Is it possible to upload multiple files using STRUTS

    Hi,
    Is it possible to upload multiple files using STRUTS.
    I am able to upload a single file. But how do i upload multiple files ??
    upload.jsp
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <html:html>
    <head>
    <title>New Page 1</title>
    </head>
    <body>
    <html:form action="/secure/uploadFile.do" enctype="multipart/form-data" method="POST" type="com.smartstream.webconnect.user.actions.UploadActionForm">
    <p>File to upload
    <html:file property="fileUpload" size="20"/></p>
    <p><html:submit/></p>
    </html:form>
    </body>
    </html:html>
    UploadAction.java
    public class UploadAction extends BaseAction {
        Logger log = Logger.getLogger(AttachMessageAction.class);
        public ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ActionException {
            System.out.println("executeAction of UploadAction");
            UploadActionForm uploadActionForm = (UploadActionForm) form;
            int fileSize = uploadActionForm.getFileUpload().getFileSize();
            System.out.println("uploadActionForm.getFileUpload().getFileSize() = " + uploadActionForm.getFileUpload().getFileSize());
            byte buffer[] = new byte[1024];
            try {
                BufferedInputStream bufferedInputStream = new BufferedInputStream(uploadActionForm.getFileUpload().getInputStream());
                FileOutputStream fos = new FileOutputStream("s:\\uploaded\\" + uploadActionForm.getFileUpload().getFileName());
                int read;
                while ( (read = bufferedInputStream.read(buffer,0,buffer.length)) != -1) {
                    fos.write(buffer, 0, read);
                fos.flush();
                fos.close();
                bufferedInputStream.close();
                return mapping.findForward("success");
            } catch (IOException e) {
                e.printStackTrace();
                return mapping.findForward("error");
            }catch(OutOfMemoryError o){
                o.printStackTrace();
                System.out.println("o.getMessage() " + o.getMessage());
                return mapping.findForward("error");
    UploadActionForm.java
    public class UploadActionForm extends ActionForm{
        private FormFile fileUpload;
        private byte[] fileContent;
        public FormFile getFileUpload() {
            org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0;
            return fileUpload;
        public byte[] getFileContent() {
            return fileContent;
        public void setFileUpload(FormFile fileUpload) {
            this.fileUpload = fileUpload;
        public void setFileContent(byte[] fileContent) {
            this.fileContent = fileContent;
    }--Bhupendra Mahajan

    Yes, you could try using the multipart handler...
    But I have a better idea...
    Determine the maximum number of file uploads that the
    user can do at one time. I mean, you can't
    realistically have the user upload a million files at
    one time. So say the max is 20. So you create your
    action form class with 20 FormFile fields called file1
    to file20.
    Then when you dynamically create your page, you
    dynamically create the specified number of file fields
    and 1 hidden field called "totalFiles" which contains
    the number of file fields you created. This should be
    an int field in the form bean.
    Then when you do your action processing, you just loop
    thru the totalFiles... Or well, actually, you may not
    need that at all. You could just check all the
    FormFile fields and whatever ones aren't null contain
    files.But what about UploadActionForm.java[b]
    How do i have exact mapping of the HTML form in this file ??
    --[b]Bhupendra Mahajan

  • Upload multiple file using csom

    how to upload multiple files programmatically using csom and store in sharepoint list
    Blitz

    Hi,
    I have seen a similar post from you, you want to upload multiple file using csom.
    You can take a look at the following thread:
    http://social.msdn.microsoft.com/Forums/en-US/edd3bd86-417b-4174-9627-5a714c733256/upload-multiple-files-using-client-context-object-model?forum=sharepointdevelopment
    I would suggest you to open only single thread for single issue. You can discuss your problem in the above thread only.
    Thank you for your understanding and support.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to Upload a File using FileReference + PHP??

    How to Upload a File using FileReference + PHP??
    If you could help me with a two code examples the AS code and
    the PHP code of a working example.
    Thanks
    Jorge

    http://www.flash-db.com/Tutorials/upload/upFiles.php?page=1

  • How to upload multiple files into a server location at a single time

    Hi All,
    In my application i need to send multiple files from a particular page into the server location. In this page there will be an option to upload a file and after selecting the file , we will have an option asking if we were interested to send another file. It works just similar to google mail where we can multiple files at the same time. Right now though i had coded the uploading files concept i am facing some problems when trying to upload multiple files. All the files are being appended to a single file but i want them to be placed as different files at the specified location. Plz help me in this regard...
    Thanks in advance................,,

    Hi,
    i am sending the code in my prg. Have a look at it.
    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ),3);
    In the above line i am specyfying that the maximum no. of files to be uploaded is 3. So if i upload less than 3 files, the program doesn't work and is not reading the uploaded files. If i upload 3 files it works fine. So please suggest me how to make this work irrespective of the no. of files uploaded using apache commons.
    My code is as follows:
    <form action="./servlet/Sample" method = "post" enctype="multipart/form-data">
         <!-- The file element -- NOTE: it has an ID -->
         <input id="my_file_element" type="file" name="file_1" >
         <input type="submit" name="submit1" value="submit">
    </form>
    Files:
    <!-- This is where the output will appear -->
    <div id="files_list"></div>
    <script>
         <!-- Create an instance of the multiSelector class, pass it the output target and the max number of files -->
         var multi_selector = new MultiSelector( document.getElementById( 'files_list' ),3);
         <!-- Pass in the file element -->
         multi_selector.addElement( document.getElementById( 'my_file_element' ) );
    </script>

  • How to upload a file using java bean?

    hi,
    i need a code simple how to upload a file from jsp form to a java bean file (not a servlet)
    thank,s zik

    Hi,
    i need a code sample how to upload a file from jsp
    form to a java bean file (not a servlet)You can use jspSmartUpload component which is a free, fully-featured JSP component.
    jspSmartUpload provides you with all the upload/download features you could possibly wish for :
    * Simple and complete upload
    * Total control over the upload process
    * �Mixed forms� management
    * Total control over files sent
    * Download whatever you want
    For further information about jspSmartUpload please visit
    http://www.jspsmart.com/
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Micro Sysytems
    http://www.sun.com/developers/support/

  • How to upload a file using psp?

    how to upload a file to a server using plsql server pages?

    for report generation we are using utl_file(this is because for getting .txt format).so automatically it will be stored in /home/oracle.(oracle 8.1.7 on linux and utl_file path is /home/oracle)
    our problem is
    our clients are using windows98.by running the reports procedure(psp) the reports are stored in server at /home/oracle.
    1.how to transfer that file to clients systems with out using another alternate file transfers?
    2.if not,is there is any alternate procedures for creating our reports in .txt formats by running the psp?
    thanks in advance.

  • How to upload html files using Weblogic Bulkloader

    I hav uploaded image files using bulkloader.
    however with html files am facing a prob.
    only the file structure gets created but there is no html file present inside.
    in
    Filename.html.md.properties i agv the followin
    nodeType=html
    lifecyclestatus=2
    File=C:\ContentRepository\a.html
    encoding=UTF-8
    charset=us-ascii
    mimeType = text/html
    shud i add some more properties...

    You have to do this your self by either (as vinod said) using a different component (not present in adf) or implementing this:
    1) allow the user to select multiple filenames (somehow)
    2) zip them together
    3) upload the zip
    4) unpack the zip on the server
    5) work with the files
    Timo

  • How to upload multiple files

    Hi
    I am trying to create a form ,how can i provide a facility to upload more than 1 attachment
    Thanks in advance.

    Hi,
    I assume you mean uploading multiple files at once/in 1 action.
    As far as I know this is not possible out of the box, check http://apex-plugin.com/oracle-apex-plugins/item-plugin/multiple-file-upload_95.html for a plugin (based on HTML5) which enables you to do this.
    Regards
    Bas

  • How to upload a file using FTP tin JSP

    Hello friends ,
    I m actually looking to upload a file using FTP to a server(webserver) in JSP . If there any tags available to accomplish this r any information regading this plzz let me no.
    Thanks in advance
    P.Satish

    Not sure exactly what you're trying to do but you set the content type a stream it to the browser from a servlet

  • How to uploade multiple files in Apex

    Hi All,
    I went through the documnet to up;oad the files in apex which is wroking fine perfectly.
    But how do we upload multile files at a time.
    If we observe here we are using P2_File_name as one of the browser filed, similarly i have created three more browser buttons with names a s P3_file_name and P4_file_name
    so how do chnage the proces to handle multiple files to uplaod at a ttime.
    Here is the process i have followed.
    IF ( :P2_FILE_NAME is not null ) THEN
    INSERT INTO oehr_file_subject(id,NAME, SUBJECT, BLOB_CONTENT, MIME_TYPE)
    SELECT ID,:P2_FILE_NAME,:P2_SUBJECT,blob_content,mime_type
    FROM APEX_APPLICATION_FILES
    WHERE name = :P2_FILE_NAME;
    DELETE from APEX_APPLICATION_FILES WHERE name = :P2_FILE_NAME;
    END IF;
    Abd for downloading the file i have used a proceudre
    create or replace PROCEDURE download_my_file(p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM oehr_file_subject
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end download_my_file;
    Thanks,
    Anoo..

    Hi,
    Take it easy, you can use plugin:
    http://apex-plugin.com/oracle-apex-plugins/item-plugin/multiple-file-upload_95.html
    http://apex-plugin.com/oracle-apex-plugins/odtug-competition/filedrop_202.html
    Regards,
    Fateh

  • BT Cloud - how to upload multiple files from my an...

    As the title says, how do you do this.? I can only see how to upload single photos at a t ime.
    thanks
    David

    If you use the web interface you can drag-drop up to 200 files at a time.
    If you use the code installed on a PC/Mac, you can add a folder using 'add to backup', and all files and subfolders will get automatically uploaded (and thed folder structure will stay intact).  To install, log in to MyBT, choose the My BT Could button, and the next page will have a download button.
    Any future changes to files in that folder and subfolder will also get backed up: insertions, changes and deletions.  It isn't a real backup: beware with the automatic client version that when you delete files from the folder, they will be deleted from the Cloud backup.
    ~~~
    If you are mainly using it for photos, you may find the not very advertised free Flickr Pro account you can get by signing up with your BT email is more suitable.  Though I still haven't found a really convenient mass upload mechanism for Flickr either.

  • Upload multiple files using lsmw

    I have to upload 2 different files using lsmw..
    Please explain me the procedure..
    I made the option as sequential file in specified files..
    but i am getting error.. Using different sequential files is not allowed...

    is der some problem or just u need clarification?
    When I import the data everything seems fine... 52 entries from file 1, and 682 entries from file 2.
    In my "Fieldmapping and conversion rules" i have a statement like this:
    read table FILE2 with key oldsls = FILE1-lgart.
    My problem is that FILE2 is empty, even that I saw in my import screen that 682 entries was imported.
    in one statement, you are saying ki it seems fine then u r saying that ur file 2 is empty. HOW CAN U UPLOAD DATA FROM AN EMPTY FILE ?
    and we don't don anything in field mappng until unless v don't use complex stuctures while uploading data. LSMW takes care of everything by itself.
    Most important thing is
    reward point
    hope this will help
    bye tc
    sandy
    waiting for reward point

Maybe you are looking for

  • Foreign Currency Valuation - BRS

    Hi Gurus, Please go through the following business process 1. Sales invoice 100 USD @ 45 2. Incoming amount 100 USD @ 50 3. BRS - Transfer amount from incoming account to main account in the 3rd point, the exchange rate maintained in ob08 is 51 and w

  • Isight not working after 10.9 update

    Hi, I have gone through and read all the advice on this issue. The iSight wasn't working in mountian lion but managed to solve that problem. Updated to 10.9 now the isight doesn't work in any Mac applicaiotn or thrid party application. The camera doe

  • Sms pc suite reading up to a certain date

    Hello all, I am struggling with a problem since many days, and hope you can help me. In my phone (n70)I have more than 2000 sms, all in the phone memory. While trying to backup my sms with pcsuite, I realized that pc suite reads and transfers only th

  • Executiing program in background..??

    Right now, I want to create a background program which monitors certain folder. What I mean by background is that, I want create a program that will continue running on myLinux Machine whether I log on or off (of course the computer willl be on). Als

  • Want to use two computers to update my one account

    I do all of my editing on my Mini, however i would like to also have the opportunity to make changes to my web site on the go using my laptop. Is there any way to achive this. Thanks