WebUtil - Upload Entire Directory

Is it possible to upload an entire directory using WebUtil (loading all of the files in the directory into the database? Anyone out there done anything like this?
Thanks.

Hello,
Yes, you can download everything, but one by one.
Firstly get the list of the directory files:
http://fdegrelle.over-blog.com/article-4977737.html
http://fdegrelle.over-blog.com/article-4989094.html
Then use the Webutil_File_Transfert.Client_To_DB() function to upload each file in your database.
Francois

Similar Messages

  • How to upload entire Directory / Multiple Files

    Dear Friends,
    I am trying to design a very user friendly servlet page for uploading multiple files from a PC to Unix server. I need some suggestion on what java library or ftp client to use for this.
    Details:
    There are about 8 files to upload (sized ranging from 200kb to 60MB, The files are a mix of binary and ascii data). I don't want the user to have to click on the browse form button on the webpage 8 times to select the files. In fact all of the files will reside in a directory with a barcode as the name.
    I would like to have the user simply select the directory and submit the form. I will then have a parser that is automatically invoked to parse these files, verify the formats and use the data to populate the next page that is shown to the user for data confirmation.
    The hardest part for me is figuring out what tool to use for the upload section. Any suggestion on what tool (FTP client library, etc.) would be highly appreciated.
    In the forum I found lots of examples for uploading single files but none for uploading entire directory or just multiple files. Am I asking the wrong question? Are there any example out there that I can look?
    I do not favor using a full blown ftp tool on the side because I think it increases the chance for user errors. (miss selecting a file, wrong directory, ascii vs binary).
    Thanks,
    Wayne Chen
    [email protected]

    There are two ways to upload multiple files:
    1. Package them all into a zip file on the client, upload that file, unpackage them on the server.
    2. Upload one file at a time.
    If you're asking about servlets then you can't do number 1 because you can't access the files on the client. And you've said you don't want to have the client upload the files one at a time. From this it follows that you need some logic on the client that can either zip and upload the files, or upload the files one at a time, without requiring user intervention. The Java form of client-side logic from a website is an applet. In this case you would have to sign the applet, since an applet can't access the client's file system without the client's permission.

  • Upload Entire Directory Using CFFILE

    I need to write an application that will allow the user to
    select all the contents of a directory on their local hard drive
    (or just point to the directory) and upload all the files in that
    directory to a location on a the web server. The user should not
    have to point to a file, just select all the contents at once.
    Does anyone know how to to so this using CFFILE? We are using
    ColdFusion 8.
    Thanks in Advance!!

    > If not, there must be a away--ColdFusion is such a great
    program, and I have
    > gotten it to do just about anything we need it to do
    except upload multiple
    > files files at once to our server...
    The files you are uploading are on the client computer.
    ColdFusion has
    *no* interaction with the client computer at all. All
    communications are
    between client and WEB SERVER. File uploads are handled by
    the client
    computer, using the provisions of the HTTP protocol, which -
    as implemented
    by a web browser - only allows for single files to be
    uploaded, via each
    file input control on a form.
    If you want multiple files to be uploaded from a client
    computer using a
    single control, you need to use something other than a web
    browser (as
    suggested by someone else: some manner of applet, perhaps
    embedded in an
    HTML document).
    The applet will pass the data to the web server, and if the
    request is for
    a mime type that the web server has been configured to pass
    to ColdFusion
    (usually a CFM or a CFC file), then the web server will pass
    the request to
    ColdFusion, which will deal with it however you tell it to.
    The problem isn't getting the files to CF; it's getting them
    to the web
    server in the first place. CF's got nothing to do with your
    problem (or,
    intrinsically, its solution).
    Adam

  • How to indicate an entire directory to upload?

    Hi,
    My JSP application must allow that users can indicate an entire directory to upload, not single files. Any suggestion using JSP, AJAX or Javascript?
    For single files it´s easy, I can use <input type="file" ... >
    I can´t ask users to zip the directory and obtain a single file.
    Xks,
    Miguel

    Hi DC
    Sorry for the delay in responding to your question.
    You should be able to do this using a 'Source Distribution' as described below:
     - Right click on 'Build Specifications' and select 'New' - 'Source Distribution'
     - Provide a name
     - Add your files to 'Always included' under 'Source Files'
     - Under 'Destinations' select 'Preserve disk hierarchy' and ensure that 'Directory' is selected as the 'Destination type'
    When building an installer your can then choose to include your source distribution and it will be installed to a location of your choosing.
    Hope this helps.
    Kind Regards
    Chris | Applications Engineer NIUK

  • Uploading Entire Directories

    Hello All,
    I am looking for a way to upload entire directories to the server. I have various dirs full of pictures (like 25+ for each dir) So I dont want to make the user click <input type="file"> 25+ times.
    What I would really like is have a text field where the user can enter the directory they wish to upload and then hit submit and have all the files be uploaded. Is there any way to do this without using an Applet? Any other solution would be great.
    Thanks in advance for any help,
    Matt

    no, unless you can ask the user to zip the directory first and upload the zip file

  • Copy entire directory using JSCH

    Hi,
    Have someday tried to copy entire directory to remote host using Jcraft's Jsch? Do they support something like scp -rp? I couldn't find it in their example. I guess, I'll have to copy all the files recursively?
    Does anybody know?
    Thanks,

    > If not, there must be a away--ColdFusion is such a great
    program, and I have
    > gotten it to do just about anything we need it to do
    except upload multiple
    > files files at once to our server...
    The files you are uploading are on the client computer.
    ColdFusion has
    *no* interaction with the client computer at all. All
    communications are
    between client and WEB SERVER. File uploads are handled by
    the client
    computer, using the provisions of the HTTP protocol, which -
    as implemented
    by a web browser - only allows for single files to be
    uploaded, via each
    file input control on a form.
    If you want multiple files to be uploaded from a client
    computer using a
    single control, you need to use something other than a web
    browser (as
    suggested by someone else: some manner of applet, perhaps
    embedded in an
    HTML document).
    The applet will pass the data to the web server, and if the
    request is for
    a mime type that the web server has been configured to pass
    to ColdFusion
    (usually a CFM or a CFC file), then the web server will pass
    the request to
    ColdFusion, which will deal with it however you tell it to.
    The problem isn't getting the files to CF; it's getting them
    to the web
    server in the first place. CF's got nothing to do with your
    problem (or,
    intrinsically, its solution).
    Adam

  • Firefox won't open following update. Can't open Profile Mgr, even when using entire directory path in cmd line

    I'm running Firefox on a Windows 7 machine. Firefox won't open following the latest update. I've read the help articles and it seems like I need to create a new profile because my settings have likely been corrupted. I'm unable to open Profile Mgr, even when using entire directory path in cmd line. I've tried the following commands in the command line:
    firefox -p
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -p
    Nothing happens with either command.
    I'm also running Norton Internet Security. I read a help article Re Virtual Browsing features possibly causing a problem. The article said to check the virtualization setting in the internet security software and to clear the virtual cache. I went thru all of the settings menus in Norton Internet Security version 21.6.0.32 and I didn't see anything that looked like 'virtualization" settings, so I assumed that this doesn't apply to me.
    If you have any ideas, I'd sure appreaciate your expertise!!

    ''arcandl [[#question-1038482|said]]''
    <blockquote>
    I'm running Firefox on a Windows 7 machine. Firefox won't open following the latest update. I've read the help articles and it seems like I need to create a new profile because my settings have likely been corrupted. I'm unable to open Profile Mgr, even when using entire directory path in cmd line. I've tried the following commands in the command line:
    firefox -p
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -p
    Nothing happens with either command.
    I'm also running Norton Internet Security. I read a help article Re Virtual Browsing features possibly causing a problem. The article said to check the virtualization setting in the internet security software and to clear the virtual cache. I went thru all of the settings menus in Norton Internet Security version 21.6.0.32 and I didn't see anything that looked like 'virtualization" settings, so I assumed that this doesn't apply to me.
    If you have any ideas, I'd sure appreaciate your expertise!!
    </blockquote>
    ''philipp [[#answer-670108|said]]''
    <blockquote>
    hello arcandl, when firefox isn't launching after you double-click on the shortcut this is sometimes also a sign of malware being active on a system.
    you might want to try running a scan with some different other security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] which are specialised in removing adware and browser hijackers.
    [[Troubleshoot Firefox issues caused by malware]]
    </blockquote>
    Phillip - You're a genius!!! I ran malwarebytes and it resolved my problem. Thank you so much!!!

  • Webutil upload is holding the file that it uploads

    Hi am creating n application using a lot of webutil commands to upload files that were scanned onto the users machine. I am having the following problem - after a call the webutil upload I try to call the webutil delete file to delete the file that was jsut uploaded off of the users machine. the problem is that once the file gets uploaded it does not get released until I am all the way out of internet exploerer - not only out of the application but totally out of internet exploerer.
    I am going to attach part of the code and notice that I need to be able to delete the file from the users machine after it is uploaded.(in the same session)
    v_random_number := random_number(6);
    INSERT INTO NEEDS_TO_BE_MOVED (RANDOM_NUMBER,APPLICATION_NAME,USER_MACHINE_NAME,DOC_NAME,
                        DOC_MOD_DATE_TIME,USER_ID,DOC_TYPE,DOC_PAGE_COUNT)VALUES
                        ( V_RANDOM_NUMBER,V_APPLICATION_NAME,V_COMPUTER_NAME,V_ACTUAL_DOC_NAME,
                        SYSDATE,USER,NULL,NULL);
    UPLOAD_BLOB_TO_DB(V_DOC_NAME,'RANDOM_NUMBER = '||V_RANDOM_NUMBER);
    COMMIT;
    v_boolean_delete_file:=WEBUTIL_FILE.DELETE_FIL(v_doc_name);
    --this is the code for the UPLOAD_BLOB_TO_DB proc
    PROCEDURE UPLOAD_BLOB_TO_DB(P_FILE IN VARCHAR2,P_WHERE IN VARCHAR2) IS
    l_success boolean;
    BEGIN
    l_success := webutil_file_transfer.Client_To_DB
    (clientFile => P_FILE
    ,tableName => 'NEEDS_TO_BE_MOVED'
    ,columnName => 'DOCUMENT'
    ,whereClause => P_WHERE
    ,asynchronous =>false
    ,callbackTrigger => null
    if l_success
    then
    SET_ALERT('File uploaded successfully into the Database');
    else
    SET_ALERT('File upload to Database failed');
    end if;
    exception
         when others
         then
         SET_ALERT('File upload failed: '||sqlerrm);
    END;
              

    can someone please respond to this issue that I having.
    I need to get thsi working ASAP!!!

  • UPLOAD A DIRECTORY WITH N NUMBER OF DATA FILE

    Hi Experts
                               In my scenario i need to upload a directory with n number of excel file from my presentation server to application server . Please do help on that (note : directory with many file not an single file )

    Hi,
    Here is the Code for List of Files from the Specific Directory to Application Server(SAP)..
    REPORT  ZDIRFILES    .
    PARAMETER: p_fdir            type pfeflnamel DEFAULT '/usr/sap/tmp'.
    data: begin of it_filedir occurs 10.
            include structure salfldir.
    data: end of it_filedir.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Get Current Directory Listing for OUT Dir
      call function 'RZL_READ_DIR_LOCAL'
           exporting
                name     = p_fdir
           tables
                file_tbl = it_filedir.
    List of files are contained within table it_filedir
      loop at it_filedir.
        write: / it_filedir-NAME.
      endloop.
    Girish

  • How to install an entire directory structure and files with the LabVIEW installer

    I think I may be missing something on how to do this - preserve a file directory structure in the LabVIEW build process.
    Is there an easy way to distribute an entire directory structure (multiple directory levels/text files) and have the LabVIEW build process properly preserve and install them?   I included a directory in my build specification but it completely flattened the file structure and then so when the installer builds it, the resulting structure in the /data directory is flattened as well.    I'd prefer not to go through each file (~100) and setup a specific target location.   Is there an easy way to preserve the file structure in the build process/installer process that I am missing (maybe a check box that I didn't see or an option setting somewhere)?
    -DC

    Hi DC
    Sorry for the delay in responding to your question.
    You should be able to do this using a 'Source Distribution' as described below:
     - Right click on 'Build Specifications' and select 'New' - 'Source Distribution'
     - Provide a name
     - Add your files to 'Always included' under 'Source Files'
     - Under 'Destinations' select 'Preserve disk hierarchy' and ensure that 'Directory' is selected as the 'Destination type'
    When building an installer your can then choose to include your source distribution and it will be installed to a location of your choosing.
    Hope this helps.
    Kind Regards
    Chris | Applications Engineer NIUK

  • HT4890 can I upload entire photo library from Mac to cloud to free-up disc space?

    can I upload entire photo library from Air to cloud to free-up disc space?  Ultimately, I want to be able to selectively download photos to Air for work and presentations.
    Thanks for any help you can offer.

    soyoroberto wrote:
    can I upload entire photo library from Air to cloud to free-up disc space?  Ultimately, I want to be able to selectively download photos to Air for work and presentations.
    Thanks for any help you can offer.
    Turn iTunes Match on, it's $25 per year.

  • Uploading a Directory

    Hi All,
    I am new to Flash. I want to upload an directory into a Web
    server. Will it be possible using Flash. If possible. Could you
    some information about the same.
    Thanking you.
    With best regards
    Aruna gulla

    Thanks. I'm currently using APEX as the front end. Ths only procedures I saw dealt with hard-coding a directory (see below). I just need to loop thru my emp table (to get the file name based on emp id) and upload the file from the user defined directory in the DB.
    /* This needs to be done by SYS */
    EXEC dbms_java.grant_permission( 'YOUR_SCHEMA', 'java.io.FilePermission','d:\datapump','read' );
    /* Where YOUR_SCHEMA is your schema name and d:\datampump is your directory */
    /* This needs to be done my your schema */
    CREATE TABLE directory_list
    filename VARCHAR2(255 BYTE),
    directory_name VARCHAR2(255 BYTE)
    );

  • Copying entire directory

    Ok..so I want to copy the entire html directory out of flash from a 3750 stack. How do I do the entire contents of the directory without doing on file at a time? Can you copy an entire directory to tftp?

    you can create a .TAR file with all the required files and then download the one .TAR file from the router.
    please see the following link for creating a .TAR file:
    http://www.cisco.com/en/US/products/hw/switches/ps646/products_configuration_guide_chapter09186a00801f0a4c.html#1030375

  • Uploading a directory (not file)

    folks... i have one question. Is it possible to upload a directory (that has other directories, files in it) using RMI. Right now i am able to upload one single file as
    public void upload(String fileName, byte[] buffer);
    what i am doing is i get file name, i create a file with that name and write the byte buffer[] in it.
    But i am wondering how can i upload a whole file? any ideas

    zip it first and send it. Have you ever been able to upload or download folders? That's not how file systems work....

  • Un-Lock entire directory of locked files

    I just got a new macbook pro, and when I popped my old secondary hard drive in, I notice that half of my mp3 files are now shown with a little lock next to them. I can manually un lock them one at a time, but I'm a professional DJ, and I have thousands of files.
    can anyone explain how to unlock an entire directory in one fell swoop? I didn't lock them to begin with, so this is aggravating.
    I cannot save bpm or cue points to files while they're locked. My serato scratch live software will also not save overviews while they're locked.
    Thanks!

    Thanks! over an hour and 3 transfers with apple care, and they still have me on hold. This fixed it.. I'm just waiting to tell the "genius" on the other end of the phone what fixed it!
    lol
    Thanks Niel.

Maybe you are looking for

  • IPhoto 6 issues with perforated box

    I have loaded some pics to experiment with iPhoto, but have encountered some problems. My thumbnails appear fine at the top to the window, but when chosen, the ever ominous perforated box with an exclaimation mark shows up. I saw an earlier comment t

  • Fuzzy & Semantic Search in TREX

    Hi Guys, Does anyone know how we can enable Fuzzy & Semantic Search in the ISA B2B application?

  • Where we will attach the Idoc type to outbound FM

    HI All,   Here we are using Idoc type as ORDERS05 for one ALE scenario, i am sure that outbound FM is 'IDOC_OUTPUT_ORDERS'. But like to know in which transaction we will attach the IDoc type & message type to this function module.

  • How to Publish Reports to the user?

    Hi all, I’ve created a reporting using the Time-based Publishing at “Content Management >> Reports”. Now I would like to publish the created report to the user. How can I do it? Any help will be appreciated, Alcides Flach

  • Executing multiple SQL statements

    I'm using the SQL worksheet in JDeveloper to run SQL statements. JDeveloper won't run more than one statement at a time. Here's an easy example: SELECT COUNT(*) FROM TABLE1 WHERE PRICE IS NULL; SELECT COUNT(*) FROM TABLE1 WHERE PRICE > 0; I get the f