How to upload files residing in a folder on local file system .

Hi, I have a problem when trying to upload files.
I have a folder in my local system and have n files in it. Now if i use the file upload element i need to click n times to upload these files. So i want to achieve programatically to upload all the files in a folder given the folder name to the application. Is this possible or is there any restriction to achieve this through webdynpro.
Also how to know programatically all the names of files and folders in a particular folder during web dynpro session.
Regards,
Vinay.

Hi Vinayaka,
Watch these links..
Uploading multiple files using the FileUpload UI element
Files...
Regards,
Karthick K Eswaran
Display files in web browser

Similar Messages

  • How to print names all files from a given folder into a file??

    Hi,
    Given is folder which contains folder's n files. the same is wd every folder.
    How to print names of all files in parent dir.
    ex: C drive
    1) windows 2)prog files 3) Documents 4) a.txt
    1.a) cursors.........
    2.a) netbeans.....
    3.a) rcm_b05
    output:
    c:\windows\cursors\s.txt
    c:\progfiles\ram\m.tc
    a.txt

    Hi,
    look at http://exampledepot.com/egs/java.io/TraverseTree.html, copy the "visitAllFiles" method and implement the "process" method as follows:
        public static void process(File f) {
            System.out.println( f.getAbsolutePath());
        }- Michael

  • HOW TO  upload OF URL ITEM INTO FOLDER programmatically

    Does anybody know how to upload URL item into folder
    programmatically either using sql command or PL/SQL.
    Please help...because I need to upload about 10,000 of URL link
    into a folder. Doing this one by one might not practical.
    Thanks.

    Please refer to the content area APIs. These are documented in
    the PDK-PL/SQL.
    Regards,
    Jerry

  • How to upload Sales Orders into B1 from an excel file?

    Hi,
      I'm a new comer. I'm looking for a program of uploading Sales Orders into B1 from an excel file. Where can I find a reference book for it? Or I appreciate if someone could offer a program sample.
      Thanks
      ZAP

    Hello ZAP.
    I do not have such code, but i this link /people/janos.nagy/blog/2010/01/25/exporting--importing-authorization-using-ms-excel-in-sap-b1 you can find an excel example about authorization, and using Single Sign On (SAP B1 must have run with excel)
    The method is similar, you can run any DI API operation from excel.
    Here is an example to add a sales order
    Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
            oDoc.CardCode = CUSTOMER_CODE
            oDoc.DocDate = Today
            oDoc.DocDueDate = Today
            oDoc.Lines.SetCurrentLine(0)
            oDoc.Lines.ItemCode = ITEMCODE
            oDoc.Lines.Quantity = QTY
            oDoc.Lines.UnitPrice = PRICE
            If oDoc.Add <> 0 Then
                MsgBox("Error " + oCompany.GetLastErrorDescription())
            Else
                MsgBox("SAles order added")
            End If
    You can repeat the setcurrentline section as many time as lines you have in the SO:
    Regards,
    J.
    Ps: Reference: SDK help and sample programs, which included in every patch.
    Edited by: János Nagy on Feb 10, 2010 9:50 AM

  • How to load ONE file automatically from a folder containing sequential files?

    I have pictures that is taken every 2 or 3 minutes and then dumped into a file folder with sequentail number as file names.
    Now I want to find a routine to automatically check the last picture and load it into labview.
    Please be aware that I already have other hardware to acquire images and store them in the computer, any advice with using other I/O device is appreciated , but not needed.
    Task is simpel! (hopfully for you.)  Only need to find the latest file in a fixed folder and open it by labview (e.g., by read JEPG file.vi ).  any insights?
    Thanks!
    Solved!
    Go to Solution.

    I wrote a VI to find the newest file (well, last modified file) in a given folder.
    Message Edited by elset191 on 06-05-2009 09:08 AM
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect
    Attachments:
    Find Newest File.vi ‏8 KB
    untitled.PNG ‏5 KB

  • How Can I Get A Flash Movie to Access Local Files

    I have a customer that has created a Flash movie to run off a CD.  The movie is basically a set of menus with links to access local files in the same directory as the movie.  i.e. Main folder (to be root of CD) has the movie, a Documents folder with PDFs, a Movie folder with wmv and mov files, etc.
    The problem arrises when you click on a link to a file, a web browser is launched, and the browser tries to display the target file.  The movie was designed on a Windows system, and, mostly it works in a Windows environment, however, the links totally crap out on a Mac because the URLs are pc centric.
    He is a rookie flash programmer so I am trying to help him set up proper links to the files, so that the files will (hopefully) launch the proper local app and not a web browers.  i.e. if the link points to a PDF, the Adobe Reader is launched; if the link is to a mov file, then QuickTime is launched....
    Is there a way to do this?  All the tutorials I have found all seem to expect the flash movie to be running on a web server, and as such do not work when running the movie off a CD.
    Any help or suggestions would be grealy appreciated.
    A response ASAP would also be greatly appreciated as the customer needs to deliver 200 CDs of the project for a presentation tomorrow morning - I have to create the CDs...
    TIA

    Hi there,
    Maybe you would want to use swfObject, i've been using it for
    a long time now.
    http://blog.deconcept.com/swfobject/
    cheers

  • Instead of pointing to local files, re-matched library lists all local files as duplicates

    I've got a mess. I moved my matched local music files from my internal drive to a larger external drive. I deleted the iTunes folder on the internal drive, created a new library by changing the location of my music library in iTunes preferences and adding all of the files on the external drive.
    When I turned match back on, my cloud-based matched files no longer pointed to my local versions. Instead, match listed everything as a duplicate -- a copy in the cloud and a local copy even though the two copies are exactly the same, previously matched files.
    I've added files to my cloud library from numerous computers -- so my cloud library is the most complete --  and I was in the process of creating one local, consolidated library on my new external drive by downloading those files from match. There has to be a way to re-sync both local and match libraries with everything matched as it previously was withouth having to either delete and re-upload or delete and re-download.
    Any tips, instruction or help will be greatly apprieciated.

    You didn't move the library in the right way. In the future, use this Apple KB article to move an iTunes Media folder: http://support.apple.com/kb/ht1449
    To try to clean this up is going to take some work on your part but it isn't impossible. Start off with one album or artist at a time and delete them from the cloud. Then you should be able to select the corrosponding locally stored tracks, right click them, and choose "add to iCloud." This should re-initiate a scan on those tracks and add them to the cloud.

  • DW8 grabs remote file when I try to edit local file

    DW8 acts like it was programmed this way, but it is not
    correct behavior. Perhaps someone can shed some light on this for
    me.
    I have the local website on a mapped network drive to a
    different server, and the remote (live) site is on another server
    only accessible via FTP. When I have the Files View drop-down set
    to Local View and the [Connects to remote host] button is NOT
    depressed, I should be able to double-click an .htm file and have
    it open up for editing. So, I do that and it then asks if I want to
    Get Dependent Files. I always say NO to this question. When the
    file opens, for some reason it has grabbed the REMOTE version from
    the live server (via FTP, I assume) without telling me it is doing
    that, and it has overwritten the local copy of the file. This is
    bad because other people in the office use different web editors,
    and they did work on that file prior to me trashing it....rats!!!
    WHY is DW8 grabbing the remote file for editing when I don't
    want it to? I want to edit the dang LOCAL file like I expect!! What
    am I doing wrong? Or is DW8 doing it wrong, and everyone in the
    world just expects it to be that way? How can I edit ONLY the local
    version of a file that exists on the remote server? I found that if
    the file is NOT on the remote server, then it simply opens the
    local file for editing as usual. I do not remember MX2004 acting
    this way because I never had that problem prior to my DW8 upgrade.
    Perhaps a clue is the dialog box that pops up asking if I
    want to "get dependent files"...the word GET is suspicious to
    me....
    HELP!!!! TIA!

    CI/CO uses the remote site as the resource for files, not the
    local site.
    The scheme is -
    1. You check out from the remote site
    2. You edit and save intermediate steps locally
    3. When editing is finished, you check in to the remote site
    This way, nobody can GET a file that you have already checked
    out until you
    check it back in.
    When you double click a local file in the File manager, if
    that file is NOT
    checked out to you, it will be checked out to you FROM THE
    REMOTE site. If
    it is checked out to you, it will open from your local site.
    > That action
    > doesn't make sense.
    Unfortunately, it makes complete sense.
    Read your help files on CI/CO again....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "i.am.mushu" <[email protected]> wrote in
    message
    news:[email protected]...
    > Yes I do. Why does that make it grab the remote file
    though?? That action
    > doesn't make sense. I want to be able to edit the file
    locally (mapped
    > network
    > drive) then when I do a PUT or CheckIn I want it to go
    to the remote
    > server.
    > When I am working on it locally, I want the .LCK file to
    exist as a
    > warning
    > that it is being worked on currently. Nothing in this
    outline suggests
    > that it
    > makes sense for DW8 to go grab the REMOTE file and
    OVERWRITE the local
    > file
    > before opening it for me to edit...?!?
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Do you have Checkin/Checkout enabled?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "i.am.mushu" <[email protected]> wrote
    in message
    > news:[email protected]...
    > > DW8 acts like it was programmed this way, but it is
    not correct
    > > behavior.
    > > Perhaps someone can shed some light on this for me.
    > >
    > > I have the local website on a mapped network drive
    to a different
    > > server,
    > > and
    > > the remote (live) site is on another server only
    accessible via FTP.
    > > When
    > > I
    > > have the Files View drop-down set to Local View and
    the [Connects to
    > > remote
    > > host] button is NOT depressed, I should be able to
    double-click an .htm
    > > file
    > > and have it open up for editing. So, I do that and
    it then asks if I
    > > want
    > > to
    > > Get Dependent Files. I always say NO to this
    question. When the file
    > > opens, for
    > > some reason it has grabbed the REMOTE version from
    the live server (via
    > > FTP, I
    > > assume) without telling me it is doing that, and it
    has overwritten the
    > > local
    > > copy of the file. This is bad because other people
    in the office use
    > > different
    > > web editors, and they did work on that file prior
    to me trashing
    > > it....rats!!!
    > >
    > > WHY is DW8 grabbing the remote file for editing
    when I don't want it to?
    > > I
    > > want to edit the dang LOCAL file like I expect!!
    What am I doing wrong?
    > > Or
    > > is
    > > DW8 doing it wrong, and everyone in the world just
    expects it to be that
    > > way?
    > > How can I edit ONLY the local version of a file
    that exists on the
    > > remote
    > > server? I found that if the file is NOT on the
    remote server, then it
    > > simply
    > > opens the local file for editing as usual. I do not
    remember MX2004
    > > acting
    > > this
    > > way because I never had that problem prior to my
    DW8 upgrade.
    > >
    > > Perhaps a clue is the dialog box that pops up
    asking if I want to "get
    > > dependent files"...the word GET is suspicious to
    me....
    > >
    > > HELP!!!! TIA!
    > >
    >
    >
    >
    >
    >
    >

  • File open menu will not open local files using open command but the same files will open if I double click them (permissions seem fine)

    Under File menu Open File will not open local files even those downloaded to the desktop by Firefox 5.
    If I double click on HTML file it does open
    Reinstalled. Same behaviour. Default Browser set correctly.
    Permissions set correctly. Odd behaviour.

    Are you sure it hasn't imported?
    Check for the track names (trackname only, not Album or Artist)) and see if they have a blank Artist and Album, because WAV files have no MetaData, so are kind of stupid as far as knowing anything about the Artist, Album & track id.
    You can't search by 'Untitled' either as there is literally, no name at all, but iTunes does pick up the actual physical track name in Finder and uses that. As an example, if you renamed your Aerosmith WAV file from say 'Toys In The Attic' to 'Love Song' it would import the track as 'Love Song' as that's all it can go by.
    There are a few iTunes AppleScripts that let you import from a file of WAV music, by looking at the enclosing Album in the enclosing Artist as that's how most PC progs create the WAV file structure.
    Mike

  • How to upload photos from the modified folder?

    I'm modifying my photos in photoshop CS3(which now is no more an option to open my photos for editing from Iphoto, why?).
    Once modified, they live in the modified folder in a folder I created, they are not visible in the menu located in the left side of IPhoto viewer.
    So how am I uploading this photos on my .mac website.
    Please advice, thank you
    Caril

    Caril:
    Welcome to the Apple Discussions.
    I'm modifying my photos in photoshop CS3(which now is no more an option to open my photos for editing from Iphoto, why?).
    That's because you're probably saving the edits incorrectly.
    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
    So to recover those edited photos from the Modified folder you'll need to open the library package like shown here. Then very carefully locate those files and copy them to the desktop. The reason I said copy is to make sure you don't accidently move the wrong file to the desktop and thus damage the library. If you're absolutely sure you have the correct edited file then you can move it to the desktop instead of copy. But do so at your own risk.
    Happy New Year
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • LV 7.1 - How can I use installer to create folder with its files included w/o adding each file?

    I have several files to place in folders created by the installer. Can't seem to see how I can avoid adding each file individually at build time. Is there an easier way to do this? Simply "adding" a folder would be a solution.
    Thanks
    Fran

    Fran,
    I believe this question is directly addressed in this online Knowledgebase.
    Kind Regards,
    E. Sulzer
    Applications Engineer
    National Instruments

  • How to upload a value of the variable to a file.

    Hi All,
    1. am using below line to uploading data to notepad
    UTL_FILE.PUT_LINE(v_file,'User_name,age,college');
    here the problem is The user_name i am getting as parameter and assigning that values to a variable.
    like
    User_name:=usrname;
    but in output file instead of user name (Sree, sunil, ravi) am getting User_name as value
    even i tried like as below
    UTL_FILE.PUT_LINE(v_file,''||User_name||'','age,college');
    but no use.
    How to use variables when we are uploading the file.
    Thanks
    Sree

    What's with all the quotes?
    If user_name, age and college are variables and you want them for instance comma separated, just do:
    UTL_FILE.PUT_LINE(v_file, user_name || ',' || age || ',' || college);

  • How to upload data into a database from a csv file in a jsp app?

    I can write a HTML form to let users to post a csv file and store it in the web server, then how could I process the file to load the data into a View Obj or an Entity Obj without manually parsing the csv files? Any jsp or java code samples that will do something like the "sqlload" in sqlplus?
    I'm using JDev 3.1.1.2. Thanks.

    Navy_Coder wrote:
    6 zebras.But you must marry his eldest daughter as well, for that dowry.

  • How to upload the web query result  to CSV/Text file

    Hi,
    Kindly help me on the following.
    1)       I have info-provider (IP), which has info-objects "company code" and "supplier".
    2)       I built a query by putting company-code with a variable in free-charateristics and supplier-code in row.
    3)       When I run this query, it will ask company-code as input and the result will be filtered using company-code.
    4)       For this query, I created a web-template and assigned data-provider to display the data on the web.
    5)       The user wants to enter input company-code='1000' and write the data in a CSV file in a specific directory. i.e, by clicking the execute button (after entering company code) , the result should go to the CSV or text file. i.e. the application should automatically generate the file with query results.
    Note: The user should not use context menu to EXPORT TO CSV OR EXCEL file.
    Please let me know, if there is any tutorial. Thanks a lot advance help.
    Regards
    Kandasamy

    1. SELECT INTO
    Below method will create table when data is inserted from one table to another table. Its useful when you need exactly same datatype as source table.
    Use AdventureWorks2008R2;
    Go
    ---Insert data using SELECT INTO
    SELECT AddressLine1, City
    INTO BothellAddresses
    FROM Person.Address
    where City = 'Bothell';
    GO
    ---VERIFY DATA
    Select AddressLine1, City
    FROM BothellAddresses
    ---DROP TABLE
    DROP TABLE BothellAddresses
    GO
    2. INSERT INTO SELECT
    Below method will need table to be created prior to inserting data. Its really useful when table is already created and you want insert data from
    another table.
    Use AdventureWorks2008R2;
    Go
    ---Create Table
    CREATE TABLE BothellAddresses (AddressLine1 NVARCHAR(60), City NVARCHAR(30))
    ---Insert into above table using SELECT
    INSERT INTO BothellAddresses(AddressLine1, City)
    SELECT AddressLine1, City
    FROM Person.Address
    where City = 'Bothell';
    ---VERIFY DATA
    Select AddressLine1, City
    FROM BothellAddresses
    ---DROP TABLE
    DROP TABLE BothellAddresses
    GO
    Regards,
    Vishal Patel
    Blog: http://vspatel.co.uk
    Site: http://lehrity.com

  • Can Photoshop Convert Selected File-types From a Folder Full of Files?

    I have a folder with approximately 20,000 files in it. The files are a mix of eps, tif, jpg, and PSD files. I want to convert all the eps files to tifs. For now I've created a folder into which I move approximately 500 eps files at a time (that I manually select) and then run a batch action I created to convert them. This works fine but you can imagine how long this process will take (moving, converting, emptying the folder, moving 500 more files, and so on). I'd like to know if there's a way, either within an action or the batch command (or possibly a script or even some other way) that Photoshop would select only the eps files to convert. I could let it run overnight if it were possible.
    I'm using Photoshop CC on a Mac running 10.6.8 with 7GB RAM.
    Thanks,
    Lloyd

    I'm not sure about EPS files but the rest can be taken care of via File > Scripts > Image Processor. I'm pretty sure that EPS files can't be handled by Image Processor though.

Maybe you are looking for