File browse issues

HI
first:
I have a form which contain file browse and i have in this form select list with submit ( i use submit to populate another select list)
The problem is : when the select list do submit the path in file browse disappear so i have to choose the file agian
what can i do to this problem?
second:
i want to make a link to file that exist in database in a report,when i click the link the file will download, how can i do it ?
Thanks in advance

Excalibur,
There's not much you can do about the first issue other than change the way the select works. You're having it submit the page for something - why not make that an Ajax process? Then no submit would be needed so no value would be cleared out.
As for the second, start with this:
http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
You can reward this reply by marking it as either Helpful or Correct ;-)

Similar Messages

  • Open Cursor Issue because of file browse Item - Is this a Bug in APEX 3.2

    Hi All,
    I am using file browse Item to upload file into the database at two places in my application, but it seems whenever I am submitting those two pages, with file path or without file path, its opening an cursor which remains open after that, because of this open cursor count in the application is getting exceeding every time.
    For testing this I have made an dummy page containing just file browse item and submit button, and still it is increasing the open cursor count.
    Is this a bug in Apex file browse item or there is some other way to handle this.
    Please kindly help me in the above issue as this is affecting the production application.
    Thanks & Regards
    Sanjay
    Edited by: user11204334 on Dec 5, 2010 9:57 PM
    Edited by: user11204334 on Dec 5, 2010 9:58 PM

    Hi,
    One observation, Apex is switching the Session ID after one got killed ? I was working on Apex page with browse Item to test open cursor count,
    after killing the SID (227) on which the open cursor count was getting increase, it APEX automatically switches to new SID(149) for that session.
    Now the problem is even if I have two SID's and one hits the maximum open cursor count, It is not switching to other SID instead the whole application becomes unavailable.
    STATNAME SID VALUE USER
    opened cursors current 20 14 APEX_PUBLIC_USER
    opened cursors current 149 74 APEX_PUBLIC_USER
    opened cursors current 194 71 APEX_PUBLIC_USER
    opened cursors current 211 5 APEX_PUBLIC_USER
    opened cursors current 227 325 APEX_PUBLIC_USER Killed
    opened cursors current 244 15 APEX_PUBLIC_USER
    opened cursors current 20 14 APEX_PUBLIC_USER
    opened cursors current 149 76 APEX_PUBLIC_USER
    opened cursors current 194 71 APEX_PUBLIC_USER
    opened cursors current 211 5 APEX_PUBLIC_USER
    opened cursors current 244 15 APEX_PUBLIC_USER
    Please kindly help in this.
    Thanks in Advance
    Thanks & Regards
    Sanjay
    Edited by: user11204334 on Dec 8, 2010 1:02 AM

  • Different issues with file browse item

    Hi everybody,
    I'm trying to create a file upload page using the file browse item. To achieve this I followed the how-to document :
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b16376/up_dn_files.htm.
    I've created my own table to store the documents as I store some extra information.
    When I test this functionality I discovered many issues.
    - If I upload a PDF file this gives me HTTP 404. When I go back, choose the same file with the browse button and upload again this will pass.
    - If I upload a file with spaces in it's name this file will be uploaded twice. (I see the same file two times in the table with 2 different names.
    - At random times I will just arrive at a blank page after clicking the upload button. It appears to me as this will happen more often when I use a double-click to select the file in the browser dialog compared to selecting the file and clicking open. However, I suppose this is just coincidence. It happens in both cases. I'm confronted with the problem with small files (1k, 4k) as well as with larger files (6m)
    - Like I said before, I store some extra information as well. In some cases this information is stored with the document. In some other cases he takes the description from a previous document to store along with the new document. I suppose this is some kind of session problem probably caused by the other problems I currently have and the fact I press back quite often in my browser (each time I arrive at a blank page)
    Version of HTML DB 2.1.0.00.05
    (Included with Oracle 10g express edition)
    I read several posts on this forum before creating my own thread.
    -> I found several discussions about the size of the file but the problem exists for files of 1K as well so I don't see a link with those discussions.
    -> I found several discussions about security and tablespace quota. I granted unlimited tablespace to each and every user : flows_020000, flows_020100, flows_files, htmldb_public_user and the user who is used in the application.
    Tx very much for your help!
    Kris

    Hi Kris,
    I think you're problem is coming from local session info... using the back button is not that good. Put a back button in your application ;-)
    An other thing I wonder is; are you developing and testing on the same machine and at the same time? - I did that before and that gave me some problems. Now I'm developing in Firefox and test with IE or vice-versa.
    Dimitri

  • File path control: invoke file browser activation

    Hi there,
    on the front panel of a vi I want a file path control to open automatically the file browser window when the user clicks into the path control. Is there any way to do that programmatically after the mouse down event has been fired? I couldn't find a suitable method so far.
    Thanks for any hint,
    Peter
    Solved!
    Go to Solution.

    I should point out that the mechanism you (I am referring to the OP) are proposing is counter-intuitive. Web browsers have started to do this, but they do it claiming security issues. Frankly, I think the security concern is small compared to the annoying change in normal behavior, but that's my just my opinion - I can't change the way Firefox or IE works.
    Do you not have the Browse button visible for the control? Clicking this displays a file browser. This is normal and expected behavior. 
    Message Edited by smercurio_fc on 07-03-2009 09:21 AM

  • Default location for file browse dialog

    OK, I know this is not solely an APEX issue, but is there a way that one can specify a starting location when invoking the file browse dialog?

    I don't think there is a possibility to modify the file browse item. It is a security issue.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • How to know if a file browser item is not null using javascript fucntion

    Hi
    <br><br>
    I tried to use javascript for validation. I have a file browser item named P55_FILE_NAME and I would like to know if this item is null or not before submit.
    <br>
    I wrote this function :<br><br>
    function validate_import(f_n){<br>
         if (trim(document.getElementByName(f_n).src) == "")<br>
         {<br>
         alert ("File name is empty.");<br>
         document.getElementByName(f_n).focus();<br>
         }<br>
         else{<br>
         doSubmit('SUBMIT');<br>
         }<br>
    } <br><br>
    When I press submit button I got an error, sounds like the src method does not exist in my input item. <br>
    Then, I looked my source page an I found this :<br><br>
    input type="file" name="p_t01" size="30"
    <br><br>
    there is know src method and the name is not P55_FILE_NAME and I don't want to use <b>p_t01</b> that will change.<br>
    <br>
    I need your help.<br>
    Benn

    Hello,
    The p_txx notation is the internal name the ApEx engine attaches to each page item. It starts with p_t01 (for the first item on page) and can end with p_t99 (hence, the max 99 items per page limit). You can see these names in your HTML source code.
    The bug in the File Browse item (fixed in version 2.2) is that the ID of the item is the internal name instead of the item name. Hence, in order to use DOM, you need to use this internal notation.
    If the File Browse item id is p_t01, you can null its content by using something like that (V2.0 notation) :
    html_GetElement('p_t01').value = '';I'm using the same, and similar code, for manipulating this type of item with no problems.
    Please document the use of this workaround, as when you'll upgrade your ApEx system, you will have to change this code back to the standard – item id equal item name.
    (Please follow Scott's advise, and keep your logic connected issues on the same thread. It will get you more quick and accurate help).
    Regards,
    Arie.

  • IWeb pages reverting to older version- not a browser issue, deleting prefs/caches no help

    Hi everyone, forgive me if this is a newb question but I've scoured the internet for answers and all of them I've already tried with no luck. I'm using iWeb and encountering a problem that has me completely stumped. I'm trying to publish changes to my site, (I do not use mobileme, I publish to disk and upload files via Fetch) and for some reason something is changing my html files when I try to upload them. The html files are correct on my hard drive when I publish them, and yet when I upload them, they revert to the older version. This is not a browser issue, as I've cleared my cache, refreshed and tried using Safari, Firefox and Chrome with no luck. I've also tried 're-setting' iWeb by deleting iWeb preferences/cache, and tried moving the domain file from application support, creating a new website, deleting it and then re-loading the old site. Nothing, still the old site. It's new in iWeb, new when I open the html files on my drive, and old as soon as I upload.
    I seem to remember having this problem before, and what I found was iWeb's cache kept replacing my new pages with the old ones every time I wanted to upload them. 'Re-setting' iWeb did the trick then, but it's not doing it now. Any ideas on what is going on? It's a little disconcerting seeing a file correct on the disk and then change itself, while uploading, into an incorrect version.
    Using:
    iWeb 3.0.3
    Mac OS 10.6.7
    Mac Pro 2.66 Dual core

    If you make changes to a page there are files in the Scripts folder that get updated and must be uploaded also.  Depending on what you're using to up load the files it can be setup to upload just those new or modified files.
    Cyberduck is a free FTP client that works very well and if used in conjunction with this tutorial will upload only those new or modified files: #2 - Uploading only those new or newly edited and published files when using a 3rd party FTP client
    OT

  • File sharing issue with Leopard and Windows XP

    I had no problem with file sharing (see the Windows machine on Leopard) before I reinstall the XP and update to SP3.
    Now I cannot get the XP shared disk displayed on Leopard Finder. I looked through some guides and check these:
    Both the two laptops are in the same workgroup called "WORKGROUP";
    XP firewall disabled;
    XP Guest Account enabled.
    But I just cannot get the Windows icon back to the left column of my Finder. Have I missed something? Any body with any ideas? Thanks in advance.

    Same problem but almost the reverse. 10.5.2 server, windows clients file browsing, opening and saving speed is great, but our 4 iMac clients (Leopard also) really, really slow to generate thumbnail views of files and open them. Happens across several shares, seems to be a problem with AFP, although now after disabling AFP on some of the shares, it is happening on SMB as well. I have read several other discussions on this forum that attempt to deal with AFP performance issues, but none provide a real solution. Now that it is also happening with the SMB protocol as well I am getting a bit concerned.
    Any advice or even a link to more info would be greatly appreciated.

  • File Browse moving files

    So, my DBA has issues with me storing PDFs in the database as a BLOB. Instead, they want to move the file to a shared drive location and store the link to the file. They think that the 300 or so PDFs loaded per year will make the database get really slow and hard to partition.
    Is this possible in APEX? Does anyone have any examples?
    For example:
    User creates PDF on a local drive (C:/temp/somefile.pdf).
    I use the file browse for them to go find it. When the form is submitted, the system needs to pick up the file and copy it to //someserver/someshare/.../somefile.pdf and store the link as the new file name to the file.
    Oh, and I still need to be able to display the PDF from within the application.
    Any ideas?
    Thank you!

    Hi,
    I know this does not answer your question, but look at this Ask Tom post:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1011065100346196442
    Here we have thousands of files uploaded to the database by Apex apps and it does not make the DB slow (well in fact it is quite slow but for other reasons...)
    Luis

  • File Browse encoding bug

    Hi! Searched through Known Issues but haven't found anything like this:
    Apex Listener 1.10.179.10.43. Tested on both Tomcat and Glassfish.
    My Apex 3.2 application works with russian-language DB, so all pages are with cyrillic chars.
    Initially all pages display fine in utf-8.
    But when I try to submit page with File Browse Item in it, the encoding of all subsequent data posted or fetched from DB is in wrong character set (cp1251 instead of utf-8).
    If I submit normal page with text items and cyrillic data all workes fine, but not when there's File Browse(
    I've tried to fix it with filter (described in Re: Accentuated characters problem but no success(((
    Any suggestions??

    solved with setting Server java parameter
    -Dfile.encoding=UTF-8

  • "File Browse" type item: at what point the fields mime_type, file_name, last_update_date get their values?

    Hi there,
    I have an issue with "File Browse" type item, my question is: at what point the fields mime_type, file_name, last_update_date get their values? I want to add them to the collection but if I try to do it in Process "On Submit - After Computations and Validations" the values in those fields are still null (that's for the insert, and for the update they have old values). Also I don't seem to be able to add blob to the collection ("File Browse" type item (which has the source as blob database column) can't be assigned as parameter p_blob001 of APEX_COLLECTION.ADD_MEMBER, error is: PLS-00306: wrong number or types of arguments in call to 'ADD_MEMBER').
    What I am trying to do is this: I have parent table (TABLE1), and child table (TABLE2).  In TABLE2 I store documents. I have a main page that is form on TABLE1, and on it I have button "Add documents" that opens popup window with form on TABLE2. On submit of popup page I want to avoid inserting document into TABLE2, instead I want to send data to the main page (using collection) and insert in only once the main page is submitted.
    I would appreciate any advice on this...
    Thanks,
    Tanya

    Hello Tanya,
    Can you post your PL/SQL code which you are trying?
    Regards,
    Hari

  • File Browse Item questions..

    Hi all..
    Please help me with these questions on ""file_browse"" item.
    I have a file browse item on a page, like in the following app.
    http://apex.oracle.com/pls/apex/f?p=62812:1
    1) when the user select a file with the browse button,we will get the
    """file path""" in the text field.
    Is it possible to validate (via javascript or any other way), whether that particular
    ""file path"" is correct and a valid file exist as per the ""file path""??The reason for this validation is, sometime our users will copy the ""file path"" instead of using the
    file browse button.
    2) http://apex.oracle.com/pls/apex/f?p=62812:1
    If users enter a valid path, but on that particular page if i have any validations,
    If any of the validations fails, it is clearing of the ""file path"" that the user entered.
    Is it possible to retain the ""file_path"" that the users entered? even if any validations fail?EX: In the following page
    http://apex.oracle.com/pls/apex/f?p=62812:1
    Please
    i)select a valid file from the ""file browse"" item and
    ii)""dont select any select list "" value
    iii) click upload.
    validation will get fired and file path get cleared.
    Thanks

    kumar wrote:
    Thanks for the reply fac...
    fac..just curious to know, what security issue do any one get , if file browse item keeps the ""file path"" they previously selected..The issue is not the server keeping the file "previously selected", but maliciously changing the value to capture a file the user does not intend to submit (e.g /etc/passwd) when the invalid page is resubmitted.
    so every time, when some validation fails, ""user need to reselect that file"".??For their own safety, yes.
    even it is in session state.. for a common user,he feels that it got cleared out and need to ""reselet "" the file again..It's a good practice to clean up any submitted files in APEX_APPLICATION_FILES should any related validations fail.
    Is there any other alternative for this issue? or It is (file browse item) just how it behaves?To ensure a secure and safe web environment it's how it's got to behave.
    Good UI design can be used to minimize the impact on users by isolating file browse items on different pages to items that are prone to validation failure, through the use of multi-page wizards etc.

  • File Browse Item in APEX versions prior 4

    Hi there,
    we are currently struggling with a strange issue concerning the File Browse Item in earlier APEX versions: The item value is not submitted correctly when using APEX Listener. There is always a F<randomnumber>/ as prefix that is not visible anywhere in the page source code (so it's not generated by APEX itself) or browser (Firebug trace didn't see any prefix transmitted) and this value is even there when the file browse dialogue is submitted empty. The latter case causes severe problems, as validations fail to detect null values. Our current workaround is a regex on that prefix, but this obviously is no clean solution.
    We found out that F<randomnumber>/ is the prefix of the name that is created temporarily in WWV_FLOW_FILES. If submitted correctly, the name is prefix + actual filename.
    This problem does not occur when using OHS and it does not occur when running the APEX Listener on top of APEX 4.0.2.
    The problem occurs reproducible in the following environments:
    - APEX Listener 1.1.2 standalone or any JEE Container, JDK 1.6.0_26, Linux or Windows
    - APEX 3.1.2 or APEX 3.2.1
    The problem seems to be related to the one discussed in {thread:id=2205973}, but describes some different effect that is not reproducible on OHS.
    I appreciate every clue where this may come from and any hint on how to turn it off...
    Thanks,
    Udo

    Hello Claudio,
    After reading this story, I have same problem with version 1.1 of the apex listener and version 4.1 application express.I still think it affects only versions prior to 4.0. I'm not able to reproduce it on 4.1.
    How do I resolve this problem?I think you ran into a bug in GlassFish 3.1.2. This has been discussed and resolved here: {thread:id=2357381}
    I hope this helps you solve your problem.
    -Udo
    P.S.: Please always open a new thread if you are not sure you are in the same situation and especially when the original thread is long "dead" like this one. Of course you can reference other threads with possibly similar issues in your thread.
    Thanks!

  • Restricting length of file name of the file to be uploaded in file browse.

    Hi,
    I have got a file browse item. When the file name is more than 74 characters, it goes to an error page. Can this be avoided?
    To prevent this, I tried using a javascript
    function doSubmitWithProgress()
    if (document.getElementById('P202_FILE_INPUT').value.length > 70){
    alert('File name should be less than 70 characters in length.');
    object.focus();
    else
    {$x_Hide('wwvFlowForm');
    $x_Show('InProgress');
    doSubmit('UPLOAD_FILE');
    But this is considering the path of the file as well and hence causing an issue.
    So could you please help me out with this issue.
    If there is a way to avoid going to error page if file name is big that would be great. Otherwise, if there is a way to check just the length of the file name and trigger an alert if it is more than 70 characters, that would help me too.
    Thanks,
    Vignesh

    The issue is that this code
      // Now create an array that contains the individual pieces of
      // the file name split on the "/" boundaries
      var myArray  = fileName.split('/');has the wrong path separator for Windows. Use backslash instead:
      // Now create an array that contains the individual pieces of
      // the file name split on the "\" boundaries
      var myArray  = fileName.split('\\');double backslash is necessary because '\' is the JavaScript escape character, so it needs to be doubled to indicate that that is the character we want.
    However, also be aware that for security/privacy reasons recent versions of browsers do not expose the file path via the .value method. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 yield the path in Windows format. IE8 and Opera, in an effort not to "break the web" (i.e. to bend over backwards to keep poorly coded and non-interoperable Windows sites working) have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    So your validation may have to cope with up to 3 scenarios, depending on the browsers that need to be supported: only get the filename (FF/Safari/Chrome); get the full path (IE6/7/8 in some security configurations/older versions of all browsers); get a fake path (Opera/IE8 in other security configurations).
    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
    (In 2009 MS are still concerned that pathname segments are limited to 8 characters?)

  • File Browser doesn't display when Flex page is opened via showModalDialog IE9 on 64-bit system

    From a html page, we open a flex page using showModalDialog.
    Once flex page is launched, we have a button to open windows file browser.
    When you click on the button, windows file browser opens as expected.
    However, if you use IE 9 on 64-bit machines, windows file browser does not open and IE crashes.
    If you use other versions and even IE9 on 32-bit system, file browser dialog shows up correctly.
    When examining in flex code, the call to FileReference object's browse() returns true so I'm assuming Flex code is thinking browse window is opened.
    We do not want to use showModalessDialog, is there any other soltuions to this issue?

    From a html page, we open a flex page using showModalDialog.
    Once flex page is launched, we have a button to open windows file browser.
    When you click on the button, windows file browser opens as expected.
    However, if you use IE 9 on 64-bit machines, windows file browser does not open and IE crashes.
    If you use other versions and even IE9 on 32-bit system, file browser dialog shows up correctly.
    When examining in flex code, the call to FileReference object's browse() returns true so I'm assuming Flex code is thinking browse window is opened.
    We do not want to use showModalessDialog, is there any other soltuions to this issue?

Maybe you are looking for

  • My iPhone 5 screen turns green when watching videos or using FaceTime

    When I watch videos or use FaceTime on my iPhone the screen turns green and I can only hear the sound. I have reset and turned off as suggested but still no joy. Any other suggestions? This just randomly started happening one day. thank you Claire

  • Creating another web page

    When I open I-web it opens my website (www.taffyproductions.com). I have been asked to create another web site. How do I create another website and be able to access either one down the road. I-web doesn't act like normal applications, in that it see

  • Encryption in PL/SQL

    Hi all, Has anyone came across encryption code, such as DES, written in PL/SQL? I found two files in Oralce 8.1.6, namely $ORACLE_HOME/rdbms/admin/dbmsobtk.sql & prvtobtk.plb. These files created a package called DBMS_OBFUSCATION_TOOLKIT which contai

  • Address dynamically created symbol

    Hi - wondering how I can get the name of a dynamically created symbol (using CreateChildSymbol) so i can hide move and otherwise affect the symbols i have created. any ideas? thanks!

  • How to find Record creation date

    Hi Friends, Is there any way to find the actual Record creation date for each record in Database tables? Thanks