Adding a file browser

I want to incorporate a File Browser (e.g. Windows Explorer)
within an Authorware Application. Is there an Active X control
offering this facility or any other available options?

You can, of course, include the IE ActiveX control. That's so
married to
Windows Explorer I would think there's a way to 'change it'
from IE to
WE... If I enter 'C:' into the IE field, Windows Explorer
opens in a new
window...
In short, I'd think you could use the IE Ax control but not
sure how.
Maybe there's a variation on it (WE Ax?) that you could use
instead?
Apurva has an Xtra (or U32) for embedding a browser in
AW...maybe it can
be used for a file browser as well.
Otherwise, I echo Chris's reply.
Erik
TomWhite wrote:
> I want to incorporate a File Browser (e.g. Windows
Explorer) within an Authorware Application. Is there an Active X
control offering this facility or any other available options?
Erik Lord
http://www.capemedia.net
Adobe Community Expert - Authorware
http://www.adobe.com/communities/experts/
http://www.awaretips.net -
samples, tips, products, faqs, and links!
*Search the A'ware newsgroup archives*
http://groups.google.com/group/macromedia.authorware

Similar Messages

  • Several File Browse in region

    Hi,
    I need to upload 2 files simultaneously, so I added 2 file browse items to a region and a submit button. When I press the submit button both files are uploaded to the wwv_flow_file_objects$ table, but in my After Submit process it only gives me the name of one of items ... the other is NULL, even thought the uploadded file as a name. What's wrong?
    Do you have any idea what I might be doing wrong?
    Thank you,
    NV

    Problem solved... Just redone the all region..
    Don't know what was wrong as I did everything as before
    Thanks anyway,
    NV

  • File Browse Upload Feature for Apex

    Hi,
    I added the File Browse feature to my Apex page. However I would like to customize the file to be uploaded into a different database as a BLOB. Any examples? Thanks.

    Jacky,
    Looks like you asked the same question here: File Upload to Custom Table
    Please refrain from double-posting.
    Thanks,
    - Scott -

  • FILE BROWSER for Livecycle Designer Form?

    Hello, Is there a way of adding a File Browser to a Livecycle form?
    From searches, I found out this is possible in AcroForms.. Has anyone managed to do this in a Designer form? Thanks in advance

    Hi,
    If you open the form in LC Designer, select one of the objects that is not exporting and go to the Object > Binding palette. There check to see what the Binding is set to. If you see None (or No Data Binding), then this explains why the data is not exporting. If you want the data to export it should be set to Name/Normal. The other condition would be a Global binding, but that also sets the value of fields with the same name.
    Hope that helps,
    Niall

  • File Browser Control

    Hi
    I have added some file browser controls to a form which file fields in a table.
    When i save the form the information in the table alters the path of the file to a string beingiing with F
    F10031\file.xls
    for example.
    How do i save the full path does anyone know?
    Thanks in advance

    erics44 wrote:
    Hi
    I have added some file browser controls to a form which file fields in a table.
    When i save the form the information in the table alters the path of the file to a string beingiing with F
    F10031\file.xls
    for example.This is done to produce a unique file identifier in the <tt>apex_application_files</tt> view, and is the session state value of the file browse control that uploaded the file. The actual filename is available in the <tt>filename</tt> column.
    How do i save the full path does anyone know?Generally, you can't.
    For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8/9 and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    Changes to IE's security config setting “Include local directory path when uploading files” enables the path to be exposed in IE8/9, but unless you're working in an intranet environment where: IE is the only browser used; it's possible to make remote changes to this setting on every desktop; and this won't break/expose anything else, then you'd be strongly advised to rethink this requirement.
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
    (This topic comes up regularly: a forum search for path AND "file browser" returns multiple hits; path AND "file browse" even more. Did you search before posting this question?)

  • How to view .shtml files locally? I have added "Open in Browser" but still not able to see the local .shtml file.

    I have added Open in browser add ons in Firefox browser, but still not able to see the .shtml files on local machine.
    Can any one please tell me how to view .shtml files in Firefox?

    SHTML files are regular HTML files that make use of Server-Side Includes. In some server configurations, the special file extension is required to instruct the server to parse the file for SSI code.
    If Firefox doesn't recognize the file type, it is likely the MIME type is incorrect.
    Try this Addons
    *https://addons.mozilla.org/en-US/firefox/addon/open-in-browser/

  • Why is the file browser unable to sort by date added (Safari, Mail, etc)?

    When I use the file browser (e.g. when I browse for a file to attach to an email or browse for a file to upload through a form) and try to sort by date added, it doesn't work.
    I can see the column for "date added" and it displays the correct date. I can sort by other properties and it works. But when I sort by "date added" it lists files that were added a while ago under "today" and the files recently added are under "no date" (even though they all have a correct date). The list doesn't seem to change day-to-day (e.g. files under "today" remain the same).
    Does anyone know what could be wrong? Am I the only one with this issue?

    Performance tip: Keep the Desktop clutter-free (empty, if possible)
    Mac OS X's Desktop is the de facto location for downloaded files, and for many users, in-progress works that will either be organized later or deleted altogether. The desktop can also be gluttonous, however, becoming a catch-all for files that linger indefinitely.
    Unfortunately - aside from the effect of disarray it creates - keeping dozens or hundreds of files on the Desktop can significantly degrade performance. Not necessarily because the system is sluggish with regard to rendering the icons on the desktop and storing them in memory persistently (which may be true in some cases), but more likely because keeping an excessive number of items on the Desktop can cause the windowserver process to generate reams of logfiles, which obviously draws resources away from other system tasks. Each of your icons on your desktop is stored as a window in the window server, not as an alias. The more you have stored, the more strain it puts on the window server. Check your desktop for unnecessary icons and clear them out.
    Keeping as few items as possible on the Desktop can prove a surprisingly effective performance boon. Even creating a single folder on your Desktop and placing all current and future clutter inside, then logging out and back in can provide an immediately noticeable speed boost, particularly for the Finder.
    And it is why Apple invented 'Stacks' for Leopard.

  • Help with adding audio files to page

    I am using DW CS5.  I have had numerous troubles adding audio files to any page.  Please know that I am not at all computer savy when it comes to html codes etc.  But I have been working with DW CS5 and have a functional website and my pages validate.  That being said, please be patient with me if I am asking stupid questions or don't understand the solution.
    Now to the problem....I originally wanted to add mp3 files...but I am not sure how to work with plugins or which plugin to use.
    Therefore, I converted my mp3 files to swf and used the insert media file feature in DW CS5.  But when I look at the finished page...I only see a big white box.  Nothing happens when you click on it. 
    First question...which is the best method to add audio files?
    Second question...what steps do I need to follow achieve the desired result?
    Note:  there is one validation error on this page and I'm not sure why or how to fix it.  Any suggestions here would be greatly appreciated.
    Here is the code for the page (or you can go to this link:  http://02cada7.netsolhost.com//test2/cupotea.shtml):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>cupotea</title>
    <style type="text/css">
        body {
            margin: 0;
            width: 100%;
            background-color: #000; /* change this to whatever the background color should be for the sides (and the bottom) */
        #wrapper {
            min-width: 960px; /* this is how wide the actual content area will be (the centered part) */
            max-width:    1260px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 0 5 5; /* keep the first two values at 0, the others are for left and right space from the edge of the background */
            background-color: #000; /* this is the background color of the main content area */
            color: #FFF; /* this is the default font color */
        #top {
            height: 75px;
            font-size: 60px;
            font-style: italic;
            font-weight: bold;
            color: #FFFDE6;
            background-color:#750700;
            text-align: center;
        #left {
            width: 120px; /* this is the width of the side area. this will take some of the width of the wrapper, above */
            float: left;
            padding-top:10px;
        #main {
            min-width: 840px; /* this is the width of the main content area. This, plus the width of the side, should equal the width of the wrapper */
            max-width: 1340px;
        float:left;
        background-color:#000;
        color: #000;
    #body {
        width:853px;
        float:left;
        color: #fffde6;
        padding-right: 10px;
        padding-left: 10px;
    #bodyleft {
        width:425px;
        float:left;
        padding-top:70px;
    #bodyleft2 {
        width:425px;
        float:left;
        padding-top:70px;
    #bodyright {
        width:425px;
        float:left;
        padding-top:70px;
    #bodymiddle {
        width:853px;
        float:left;
        color: #fffde6;
        padding-right: 10px;
        padding-left: 10px;
    a img {border:none; }
    .standardparagraph {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12pt;
        color: #fffde6;
        text-align: justify;
        font-weight: normal;
    .standardparagraph2{
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12pt;
        color: #fffde6;
        text-align: justify;
        font-weight: normal;
        border-top:thin;
        border-color:#666;
        border-bottom-style:solid;
    .standardparagraph3{
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12pt;
        color: #fffde6;
        text-align:    center;
        font-weight: normal;
    .standardparagraph4{
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12pt;
        color: #fffde6;
        text-align: center;
        font-weight: normal;
        border-top:thin;
        border-color:#666;
        border-bottom-style:solid;
    .pagetitle {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16pt;
        font-weight: bold;
        color: #fffde6;
        text-align: center;
    </style>
    //<![CDATA[
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //]]>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryTooltip.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical-2.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryTooltip.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="lightbox/js/prototype.js"></script>
    <script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="lightbox/js/lightbox.js"></script>
    <link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen" />
    <style type="text/css">
    a:link {
        color: #06F;
    a:visited {
        color: #06F;
    a:hover {
        color: #06F;
    a:active {
        color: #06F;
    </style>
    </head>
    <body onload="MM_preloadImages(''images/buttons/miscfamily2.jpg','images/buttons/home2.jpg','im ages/buttons/familytrees2.jpg','images/buttons/legacy2.jpg','images/buttons/polska2.jpg',' images/buttons/dziekuje2.jpg','images/buttons/calendar2.jpg','images/buttons/dziekuje2.jpg ','images/buttons/StasikEarly1800sto1870-2.jpg','images/buttons/JanikMid1800sto1866-2.jpg' ,'images/buttons/Stasik1857toPresent-2.jpg','images/buttons/1st-generation-2.jpg','images/ buttons/2nd-generation-2.jpg','images/buttons/3rd-generation-2.jpg','images/buttons/4th-ge neration-2.jpg','images/buttons/5th-generation-2.jpg','images/buttons/6th-generation-2.jpg ','images/buttons/7th-generation-2.jpg','images/buttons/january-2.jpg','images/buttons/feb ruary-2.jpg','images/buttons/march-2.jpg''images/buttons/april-2.jpg','images/buttons/may- 2.jpg','images/buttons/june-2.jpg','images/buttons/july-2.jpg','images/buttons/august-2.jp g','images/buttons/september-2.jpg','images/buttons/october-2.jpg','images/buttons/novembe r-2.jpg','images/buttons/december-2.jpg')">
    <div id="wrapper">
      <div id="top">
        <div align="center">THE STASIK FAMILY</div>
      </div>
      <div id="left">
    <!--#include virtual="includes/menu.html" -->
      </div>
      <div id="main">
       <div align="center">
        <br />
        <span class="pagetitle">CUP O' TEA</span><br />
        </div>
        <div id="body">
            <p class="standardparagraph2">When preserving family history, nothing can compare to sitting down with a Grandparent or Great Aunt or Uncle over a cup of tea; listening to them reminicse about the past.  Unlike handwritten accounts, there is opportunity to ask questions or delve further into the subject.  Even better, recording such conversations so they can be shared for generations to come.<br />
    <br />
    The following audio files were created by Virginia (Stasik) Zarow at the request of Laura (Stasik) Schmidt and Carrie (Stasik) Kot.  There were a total of five cassette tapes, ranging from 1 hour to a 1 1/2 halfs in length.  Scott Freeson converted each tape to digital format and then they were broken down into various segments for a total of 7 audio files.  It is recommended that you listen to each tape in the order presented to maintain the proper timeline and context.<br /><br /></p>
    <p class="standardparagraph">The first five audio files were recorded by Aunt Virginia in response to questions posed by Laura (Stasik) Schmidt and her sister Carrie (Stasik) Kot.  Aunt Virginia re-recorded her responses in August 2009 after noticing some mistakes in the original recording.<br />
    <br />
    Note:  Virginia refers to her father as "tata", which is the Polish word for dad.</p>
    <div id="bodyleft">
    <span class="standardparagraph">What are the recollections you have about your parents, in particular their interests, their hobbies, and their lives and faith?<br />
    What did your dad do around the house?<br />
    How did your mom relax?<br /><br /></span>
    <span class="standardparagraph">How did you celebrate holidays and birthdays? <br />
    Did you go on vacations?<br />
    What did you and your brothers do for fun?<br /><br /></span>
    <span class="standardparagraph">What do you know about Jacob Sikora and Catherine Dziwak, the extended family and their faith?<br />
      - Jacob Sikora and Catherine (Dziwak) Sikora<br />
      - Michael (aka Patsy)<br />
      - Magdeline (aka Chochi)<br />
      - Angeline (aka Nellie) - includes information about Frank &amp; their children<br />
      - Elizabeth (aka Diane)<br />
      - John<br />
      - Peter<br />
      - Walter<br /><br /></span>
    <span class="standardparagraph">  What was the house like?<br />
      - In the beginning<br />
      - The 1936 flood<br />
      - Renovations<br />
      - The final demise<br /><br /></span>
    <span class="standardparagraph2">Miscellaneous tidbits...<br />
      - Polish Proverbs<br />
      - Ancedotes<br /><br /></span>  </div>
    <div id="bodyright">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="50" height="25" id="FlashID" title="virginia1of5">
      <param name="movie" value="audiofiles/virginia1of5.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="15.0.0.0" />
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
      <param name="expressinstall" value="Scripts/expressInstall.swf" />
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="audiofiles/virginia1of5.swf" width="50" height="250">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="15.0.0.0" />
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
    <span class="standardparagraph3">for the media file<br /><br /><br /><br /></span>
    <span class="standardparagraph3">for the media file<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></span> 
    <span class="standardparagraph3">for the media file<br /><br /><br /><br /><br /><br /></span>
    <span class="standardparagraph4">for the media file<br /><br /><br /><br /></span>
        </div>
        <div id="bodymiddle"><span class="standardparagraph">The second tape, also recorded in August 2009, consists of 2 clips and covers the years 1944 through 1947.</span></div>
    <div id="bodyleft2">
    <span class="standardparagraph">Summer of 1944 to December of 1945<br />
      - Meeting of Frank Zarow<br />
      - New Years Eve - 1944<br />
      - Prom Night - May 1945<br />
      - First boyfriend, Eddie Yesh<br />
      - First job as a hygienist<br />
      - Meeting of John Zarow<br />
      - Enrolled at Indiana State Teachers College<br />
      - Meeting of Ted Zaroff<br />
      - Thanksgiving - 1945<br />
      - Florian Stasik Airforce injury<br />
      - Christmas - 1945<br />
      - New Years Eve - 1945</span>
    <span class="standardparagraph">Note:  Per Virginia, Ted's name should be spelled Zarow, like most of his brothers.  There was a mixup with his birth certificate and his last name was mispelled (although it is phonetically correct).  He chose to keep this spelling as did one of his brothers.<br /><br /></span>
    <span class="standardparagraph">January 1946 to December 1947<br />
      - Takes job as cook/housekeeper<br />
      - Break-up with Eddie Yesh<br />
      - Frank Zarow passes away<br />
      - Christmas 1946<br />
      - Meets John Zarow again<br />
      - New Years Eve 1946<br />
      - John courts Virginia<br />
      - First date with John<br />
      - John's father passes away<br />
      - Christmas 1947</span>
    <span class="standardparagraph">Virginia mentions visiting cousin Helena in Poland.  She is referring to <a href="4-0-helenastasikguzik.shtml">Helena (Stasik) Guzik </a>and her trip to Poland in 1990.  </span></div>
    <div id="bodyright2">
    <span class="standardparagraph3">for the media file<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></span>
    <span class="standardparagraph3">for the media file<br /><br /><br /><br /></span></div>   
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </div>
    </div>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
      </script>
      </div>
    </body>
    </html>

    Woohoo! I was able to resolve the issue including the validation issue.  But I have a follow up question...
    Currently if you click on the play button another window pops up which has the play/control/stop buttons to control the audio file.  The attribute is set to new window.  If I change the attribute to parent window, then the page that has the control buttons overlays ontop of the page with the link.
    To get back to the original page, one must click on the back arrow near the address bar.
    Isn't there a way to not have a separate window appear?  In other words, the controls are embeded into the parent page?

  • Dynamic action on File browse change event

    Hi Experts,
    apex version 4.1
    This is what i'm trying to do..
    i have a file browse control and a text field. when user selects a file, selected fiel's name (without file type extension) should be set to text field.
    I tried adding a dynamic action to file browse control's change event and within pl/sql Set Value logic i queried the wwv_flow_files and tried to return the file name it didn't work. i got no data found error. i assumed file is being inserted into wwv_flow_files when a page submission happens.
    In my second approach within the SetValue pl/sql logic i got the file browser control's (by directly accessing field, not by querying wwv_flow_files)value and did some string manipulation and tried to return only the file name. yet i got the same no data found error.
    Any idea how can i implement this ?
    Thanks in advance.
    - kurubaran

    Hi,
    I think PL/SQL approach will not work before you submit data to database.
    Have you think use $v function to get value from file browser?
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm#BGBGDGIH
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Customize File Browse...upload many files at once

    Hi,
    I've searched the forums and this appears to not be possible using the HTMLDB app builder. Some threads I searched include :
    Upload Multiple Files
    Basically, our testing machine will create a folder for each test, inside of which are many files always with the same name. It'd be nice if the user only had to select either the folder, or one file in the folder, and any other files needed in that folder would be automatically uploaded by either HTMLDB or some custom code.
    There were some links as to how the guts of the File Browse... does it's thing in adding files to the flow_files table, but many of the links were dead. Java script can do some custom error checking, but how about behind-the-scenes multiple file loading?
    Just curious if this has been implemented. Running Oracle 9.2.0.4, HTMLDB 1.6.1.00.02.
    Thanks much,
    Matt

    Matt,
    I'm not aware of any way to do this using HTML and Javascript only running in a browser. As such, I don't know of a way to do this using HTML DB. Thing is, web browsers take great care to protect your file system from Javascript running behind the scenes.
    Sergio

  • JTree File Browser solutions and a problem

    Hi everyone I have recently needed to create a file browser that allows addition, deletions and rename of files/directores using a JTree component.
    I have searched the Sun web site and found a number of examples and from what I can see there are more or less two solutions. The first is to use the DefaultTreeModel and the DefaultMutableTreeNode classes and the other is to implement a new TreeModel taking advantage of a the File objects tree structure. This I found at;
    http://java.sun.com/products/jfc/tsc/articles/jtree/
    This to me seemed a very elegant solution. However it doesn't contain deletion, addition etc. So far I have tried to implement the addition of files but I have run into problems. The problem I have is that when I add a file a blank space ends up on the JTree view. If someone could take a look and suggest where I am going wrong I would be very greatful. The methods below I added to the FileSystemModel.java class from the url above.
         public File[] getPathToRoot(File file) {
         return getPathToRoot(file, 0);
        protected File[] getPathToRoot(File file, int i) {                              
         File[] files;
         if (file == null) {
             if (i == 0){
              return null;
             files = new File;
         } else {
         i++;
         if (file.equals( getRoot())){
                   files = new File[i];
              }else{
              files = getPathToRoot(file.getParentFile(), i);
         files[files.length - i] = file;
         return files;
    public void insertFileInto(String newFilePath, File parent) {
         File newFile = new File(parent, newFilePath);
         try{
              newFile.createNewFile();          
              } catch ( IOException io){
                             System.out.println("io ex");
         filesWereInserted( parent,newFile);
    public void filesWereInserted(File file, File newFile) {          
         if (listenerList != null && file != null ) {
         Object[] objects = new Object[1];
              objects[0] = newFile;
              int [] is = new int[1];
              is[0] = 0;
         fireTreeNodesInserted(new TreeModelEvent(this, getPathToRoot(file), is, objects));
    I basically looked at the DefaultTreeModel and tried to simluate the behaviour for files.
    Since I have had this problem I remembered that out of the two solutions I have seen for a file browser the first is far more common. Perhaps I have chosse the wrong solution. Before I switch to the other soluion I thought I'ld put my problem to you guys and ask what you think the best solution is.
    Thanks for any help :)

    You are right this is a bad idea. You really want to implement delay loading. This means that your tree start out with only the top level folder expanded and dummy nodes in the folders that have children. Then using the expand events you can remove your dummy node and put in the real nodes before the tree displays the children. On the collapse event you can remove the real nodes and put back your dummy node (or you can leave the real nodes, that just means that eventually customers could have nodes for the entire system in memory, with a little work on their part:-). This way you only read the part of the file system that is visible and you only have the currently visible nodes in memory. I am sure you can find some examples of this technique.
    While this could be done with the default models I feel that a custom model would be the way to go.
    IL

  • HTML 5 Compatible File Browser Control

    Has anyone seen a a plugin or sample demonstrating a html 5 compliant file browser control for APEX 4.x?  I know of a pay to use plugin but my office is leery about buying a 3rd party plugin.  I know there are jquery plugins available, but was looking to see if anyone had already done the heavy lifting.
    Mainly we are looking to implement this to limit what types of files are uploaded by users, so instead of telling them AFTER they upload the file, we limit what type files they can upload BEFORE they have a chance to upload incorrect file types..
    Thank you,
    Tony Miller
    LuvMuffin Software
    Ruckersville, VA

    Found this old thread with what will suffice.. Adding a onchange event call to the documented javascript function will suffice to what they need: How to set "Files of type" when using a "File Browse" item.
    Thank you,
    Tony Miller
    LuvMuffin Software
    Ruckersville, VA

  • Where's JDeveloper11g file browsing feature for codes?

    In JDeveloper 11g, whenever I type img src, followed by an equation sign, I expect to see the File Browse link being popped up along with all the files within the directory so I can easily pick the ones I need. Unfortunately, this function does not work, and all I get is "CDATA or ELExpression" being popped up which usually happens when there is no code insight. I am sure the File Browse and easy pick feature did exist before way back in the early versions of 10g. Is this a bug in 11g or it is a step backward by removing that feature although I don't believe there's a sound reason to.

    Hi, I'm afraid I have got this issue since the first clean install. For all 11g versions I have tried on, there is no popup for File Browse, as you can see here:
    http://s8.postimg.org/4wy23u6ut/image.jpg (Jdeveloper 11g)
    On the other hand, when I checked the old 10g version that I have previously, it has that, just like below.
    http://s21.postimg.org/aetyo97mr/image.jpg (JDeveloper 10g)
    For all the above, I am using JSP page. Usually I would create a custom application, and then adding a new JSP. I believe this shouldn't result any peculiarity, as it's almost standard procedure.
    Update: I think I've figured out. I didn't have image files in the directory yet. After I have put some images in the directory, I'm now able to see the File Browse.
    By the way, is JDeveloper 11g short of support for inline CSS parameters?
    For instance, if i type the HTML, [anchor] input style [equals], it doesn't pop up things like 'text-align' etc. I think I noticed this feature when I'm doing a preview of 12c, so can anyone confirm that this doesn't exist in any version of 11g?

  • How to set "Files of type" when using a "File Browse" item.

    Apex 4.0.2
    Internet Explorer 7 +
    I have a "File Browse" item on a page and need to limit the types of files display to just "text (.txt)" files. How can this be done? Currently, the "Files of type" list shows "All File (*.*)", "Pictures (*.gif,*.png)", and HTML (*.htm,*.html)". In the best case, I would like to not have the "Files of type" list and have the user just limited to text files. However, adding Text files (*.txt)" to the "Files of type" list is ok.
    thanks,
    William

    Thought i'd do a bit of research after seeing Scotts wonderful ideas.
    So it turns out, IE made the file item read only from version 8, for security reasons. Read more: http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
    File Upload Control
    Historically, the HTML File Upload Control (<input type=file>) has been the source of a significant number of information disclosure vulnerabilities. To resolve these issues, two changes were made to the behavior of the control.
    To block attacks that rely on “stealing” keystrokes to surreptitiously trick the user into typing a local file path into the control, the File Path edit box is now read-only. The user must explicitly select a file for upload using the File Browse dialog.
    Additionally, the “Include local directory path when uploading files” URLAction has been set to "Disable" for the Internet Zone. This change prevents leakage of potentially sensitive local file-system information to the Internet. For instance, rather than submitting the full path C:\users\ericlaw\documents\secret\image.png, Internet Explorer 8 will now submit only the filename image.png.To resetting the actual items, suggestions I found were to replace the actual item. So instead of using $s, I just replace the element, with the existing element, causing it to re-initialise.
    var htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function fileCheck(el){
        if(el.value){
            var validFile = false;
            var validExtensions = ["csv"];
            var filename = el.value;
            var fileExtIndex = filename.lastIndexOf(".");
            var fileExt = filename.substring(fileExtIndex+1, filename.length);
            for(i = 0; i < validExtensions.length; i++){
                if(validExtensions[i] == fileExt){
                    validFile = true;
                    break;
            if ( !validFile || fileExtIndex == -1) {
                alert("Invalid Extension. Permitted files must end with: " + validExtensions.toString());
                var htmlContents = el.outerHTML || new XMLSerializer().serializeToString(el);
                $('#P16_BINARY').replaceWith(htmlContents);
    }(obviously, replacing what you need to, to suit your page - i prefer scotts idea of passing in supported file types in the function, so would just pass in an array instead; but this is just for demonstration)
    with an onchange="checkFile(this)" on the element attributes.
    On a slightly un-related note, I found out IE doesn't support the wonderful indexOf function on arrays, that checks for the existence of the value in an array. Sucks.
    Edited by: trent
    Ah well, jQuery is there, maybe i should use that for searching arrays in the future.
    http://api.jquery.com/jQuery.inArray/
    Edited by: trent
    Forgot a demo link, for csv files: http://apex.oracle.com/pls/apex/f?p=45448:16
    Edited by: trent
    Modify function. Didn't work in Firefox

  • File browser to find large files?

    I am looking for a program or file browser in order to locate large folders,files,etc on my hard drive. There is a program I have used in windows called ExplorerXP and there are many like it in the windows world. My available free disk space isn't adding up to me so I would like to see where it is being allocated.
    Thanks!

    Try WhatSize.

Maybe you are looking for

  • Questions on composition and assosiation relationship

    Which two are true about the composition relationship "A Blip consists of many Blipverts."? (Choose two.) A. A Blip must have at least two Blipverts. B. A Blipvert can be a part of only one Blip. C. A Blipvert must be part of at least one Blip. D. Wh

  • Set filter for only one column in tableview

    Hi i am using in MVC a htmlb:tableview with filter in only one column of 8. This is all working fine, except that the user can enter a searchsting in the filterfield for all columns, but in handle_event (of the controller) ; i only react to a text in

  • Trouble with Zen Ne

    I just got a new Zen Neeon last Thursday. I put a few cds on it last night, and it seemed to be working fine, but when I attempted to turn it on this morning, I got a message that says "File system error" and my player immediately turned off. Any rea

  • Formula in Query Designer

    Hi Experts, I am confused in calculating Total sales/ net sales in bex query designer can you help me Regards, Anil Doddi

  • I lost my ipod touch and never set up gps how to set it up with out having my ipod

    i lost my ipod touch and never set up the gps. How do i set it up with out having my ipod touch