File Browse Page Item Layout

Hi,
I have a page with a file-browse item which I created with APEX 4.1: there's a "Choose"-Button on the right hand side of the file path. Now I created another page with a file-browse item in Apex 4.2 and it looks slightly different: now the button is named "Browse" and is on the left hand side of the file-path. I'm wondering how to influence the layout of the browse item. Is there a way to do this?
Thanks,
Stephan

Hi Stephan,
the button text and position is defined by the browser. It's not something APEX can control. Is it possible that you use a different browser now. If you have a look at your 4.1 app, does it still show "Choose"?
Regards
Patrick
Member of the APEX development team
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf

Similar Messages

  • "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 image item not saving

    Hi,
    Im faced with a problem whereby i created a file browse item to load/save images, thing is the image only gets saved when i edit the record and not on creation.
    Any help please.
    Thanks

    Forms doesn't support multipage tifs.

  • How stop File Browse item losing value when a validation occurs

    G'Day Apex gurus,
    I am using Apex 3.1.0 and Firefox in an XP PC and have a file browse page item on my page but whenever i experience a validation error on the page, the value entered into this box is lost.
    Every other field on the page retains its entered value, but the file browser item loses its value.
    This is frustrating because the user will have to reselect the file.
    Is there a way to retain the value upon a validation error?
    I appreciate any assistance with this
    Carlos

    Hey creyes,
    I don't think this is possible.
    Because of security implications (scripts setting the value, and then attempting to retrieve files of your computer) the value of the fileupload form field is read only. Therefore you cannot set, or reset the value.
    A solution could be that you make validations with javascript if possible (but keep validations on the database side also!).
    Kind regards,
    Oli

  • File in File Browse item disappears if validation fails on any item ....

    Greetings:
    I'm using APEX 4.0. I have a region with 7 data elements, one of them being a File Browse page item. The BLOB file loads in the WWV_FLOW_FILES table first, then in the "After Submit" page processing, I move the BLOB into my own custom table. This works great in normal processing.
    However, if any of the other data elements in this region fails validation, the page renders with the validation messages, but the file in the File Browse page item disappears. Therefore, the user would have to re-select the file to upload before they resubmit and process the page again.
    How can I avoid this? Why does the path and file name disappear when page validation fails?
    Thanks,
    Stan

    bondurs wrote:
    Greetings:
    I'm using APEX 4.0. I have a region with 7 data elements, one of them being a File Browse page item. The BLOB file loads in the WWV_FLOW_FILES table first, then in the "After Submit" page processing, I move the BLOB into my own custom table. This works great in normal processing.
    However, if any of the other data elements in this region fails validation, the page renders with the validation messages, but the file in the File Browse page item disappears. Therefore, the user would have to re-select the file to upload before they resubmit and process the page again.
    How can I avoid this? Why does the path and file name disappear when page validation fails?It is a required security feature. Per the HTML specification, APEX will not render a value in a file browse item on page show. This protects the user from nefarious persons changing the file item value during spurious "failed" validation (hoping the user is distracted correcting the "failed" item and does not notice) in order to capture a file the user does not intend to submit (e.g. /etc/passwd).

  • Htmldb page with 'File Browse' hang on submit change

    I have a htmldb page with 'File Browse' item. With File Browse empty, on pressing submit button with which has 'SQL UPDATE' action and returning to same page branch, the page hangs.
    It also happen on File Import page of htmldb application itself with File Browse.
    Anyone have the same problem or know why?

    I'm working with Sashisu on our problem and I wanted to give a few more details on what we've found.
    -We're using HTMLDB 1.6
    -The problem occurs only on pages with a file upload page item.
    -When clicking a link on one of the problem pages the browser will stick on retrieving the page for 1-2 minutes, then ultimately it will end in a page cannot be displayed error.
    -Sometimes the page will not hang and go directly to the page cannot be displayed error.
    -After encountering the error, clicking back to return to the page and then retrying the link will successfully load (and upload the file) the next page.
    -The problem only happens in IE 6.0. The submits work fine in FireFox.
    -Our development servers do not have this problem using the same HTMLDB code. The configuration between the servers on Development and Production is similar but not exact (we're working on finding the delta).
    -We did not have this problem on production until a recent code update.
    Thanks in advance,
    -John

  • File Browser with multi select....

    Is it possible to have a file browser with multi- select??? I have several (possibly dozens) of files in a directory that I'd like to up load using a file browser style item, but be able to select several at a time to up load rather that doing them on at a time. Is this possible???

    Different idea, look at this thread, where you could just have multiple file upload capacity in a form.. The multi-select with browser I believe is NOT possible with current version of APEX.
    how to Upload Multiple Files
    Thank you,
    Tony Miller
    Webster, TX

  • Multiple file browse items on a page

    Hi,
    A relative newbie so apologies if this has already been answered...
    Is there a way to add an arbitrary number of "File Browse" items to a page and then programtically go through them and upload the files specified?
    So a user, for example, goes to a screen and by default can upload 3 files however they have 5 files to upload. What I would like them to be able to do is instead of having to upload 3 files followed by another 2 files they could add two more boxes to upload files.
    To complicate things slightly more I'd also like each File Browse box to have an associated additional field that is a file description.
    Best regards,
    Gareth.

    No problem I've been trying out a few ideas and have a workable solution - although there is one thing that bugs me/I don't fully understand.
    In the page I have created the user clicks 'Add' to add the file to the collection which it does successfully. However this also causes the file to immediately be uploaded to APEX_APPLICATION_FILES.
    Is there a way to prevent this behaviour? Ideally no files would be uploaded until an overall page submit occurs. i.e. The only thing that changes until the page level submit is pressed is the Apex collection. Once the submit is pressed the process loops through the collection uploading each file.
    If this isn't possible then I can work around it I think by allowing the users to update the collection and delete individual members which in turn would delete the file from the APEX_APPLICATION_FILES view.
    I suspect that the upload logic is somehow wrapped up in the "File Browse" item so it's not possible to do it in the way I imagine but thought I'd ask anyway.
    Thanks again for your help.
    Gareth.

  • 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

  • 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.

  • 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

  • Checking filename length in File Browse item before uploading

    I have a File Browse item from which users can upload files into the database. Within APEX, the file metadata and content first get uploaded into the view WWV_FLOW_FILES. By design apparently, the underlying table for this view has a NAME field which is limited to 90 characters. I would like to test the length of the Name field and provide a warning to the user if the name exceeds 90 characters, but any validation I write to that effect does not "fire" until after the file has been uploaded to the WWV_FLOW_FILES view. That attempt to upload apparently is the first thing that happens when you Submit with a File Browse item, even before the validation. If the name of the file exceeds 90 characters in length, the attempted upload errors out with a generic Page Not Found error. Is there any way to capture the length of the Name of the file with a File Browse item prior to the attempt to upload to the WWV_FLOW_FILES view, or is my only option just to put a warning banner on the page?

    Hello Mike,
    >> Column NAME in WWV_FLOW_FILES is VARCHAR2(90). It does not include the local filename path. It include a prefix like "F1521676842/" in the front of the filename.
    Yes, you are correct. I spoke from memory, and it seems that I remembered one of my customized tables, where I also save the local full path of the file.
    As far as I can see in my system, the extension of the ‘F123….’ is not with a fix length, and the highest one is 18 characters long. Therefore, it seems that the actual file name should be less than 70 characters long.
    A similar code to the following can be used in a validation check:
    <script type="text/javascript">
    function checkFileName(pThis){
      if (pThis.value != "") {
         //get path value (including file name)
         var fileAndPath = pThis.value;
         //find the index of the last "\"
         var lastPathDelimiter = fileAndPath.lastIndexOf("\\");
        //get everything after the last "\"
        var fileNameOnly = fileAndPath.substring(lastPathDelimiter+1);
        if (fileNameOnly.length >70) {
          alert("File name " + fileNameOnly +
              " is too long (" + fileNameOnly.length + " characters).");
          pThis.focus();
    </script>The “HTML Form Element Attributes” of the item should include:
    onblur=" checkFileName(this)"
    Regards,
    Arie.

  • Resetting the File browse item in Javascript in Apex 4.0

    Hi,
    Can anyone please help to reset the File browse item in Apex with Javascript.
    For example I have an File Browse item P10_FILE_BROWSE, I have selected some file in it and on Click of button, I want to set NULL in that File Browse item "P10_FILE_BROWSE"
    I have tried below options but none of them is working for IE 7
    $x('P10_FILE_BROWSE').value = null;
    $x_Value('P10_FILE_BROWSE',null);
    $s('P10_FILE_BROWSE',null);
    document.getElementById('P10_FILE_BROWSE').value = null;
    document.getElementById('P10_FILE_BROWSE').value="";
    document.getElementById('P10_FILE_BROWSE').reset();
    Please help at earliest.
    -Pramila

    For security and privacy, file browse item values cannot be set using JavaScript.
    Think about it: my page displays a file browse item, the user selects a file, then when the submit button is clicked, my JS code changes the value of the file browser to <tt>/etc/passwd</tt>. Not good.
    (Please update your forum profile with a real handle instead of "user12879893".)

  • Modifying File Browse item through Javascript

    I would like to modify the value of a File Browse item with javascript in my Submit button under certain circumstances. I would like to remove the file name (and path) from the File Browse field, so that the file is not automatically uploaded when the Submit button is pressed. It would seem I could "null" out the filename within the javascript function and then follow that with doSubmit ('SUBMIT'). The rest of the page values would be posted to the database, but the file would not get loaded. However, I cannot figure out how to access and modify the filename in the File Browse field with javascript. I've tried using ".value" and ".src" but to no avail. Saw a thread that says there is a bug with File Browse items in versions earlier that 2.2 (I'm using 2.0), and that you needed to fall back on the "p_t xx" notation, but I can't find any information on what that is. Appreciate any help.

    I apologize for the multiple threads. The response to my initial inquiry on thread Inserting/uploading data without inserting/uploading a document was that "others" would be better equipped to help me than the initial responder, so I didn't think I was supposed to continue with that thread. (Haven't used this forum much.) I found a second thread (the one with the "p_tXX" notation, and responded to it, but wasn't sure if all older threads were still active, so I also iniitiated a thread on my own.
    In response to the inquiry about why not using an after submit computation to null out the File Browse item, what I am trying to prevent is the uploading of a file to the WWV_FLOW_FILE_OBJECT$ table, if there is an entry in my File Browse item, when all the user really wants to do is update some data items on the main portion of the page. I have a Apply Changes button on the main data entry form, and then I also have (at my user's request) a separate form and Submit button on the page where the user may enter a file name to upload. The trouble exists when the user is only trying to modify data in the main form, but has also left an entry in the File Browse item. When the page is submitted, the data is uploaded OK, but the file is also uploaded via HTMLDB_APPLICATION_FILES, since there is an entry in the File Browse item. What I'm trying to do, is clear that File Browse item out when the user presses the main form Apply Changes button, so that the file does not get uploaded. The users want the ability to upload a file, but only when that is their direct intent. Obviously, I do not want to clear out the File Browse item under those circumstances. Hope this is clear; sometimes difficult to satisfy the users needs (whims?). Appreciate any help.

  • Maybe enhancement request: File Browse item with Button in template style.

    When I use a file browse item on a page it gets a standard HTML button. This looks a bit out of place among all the other template style buttons.
    Is there a way to give the file browse button a template button style?

    Hi Rene,
    there is a nice workaround available.
    You just need to create some css changes:
    /* this one hides the original button + field */
    input.file {
         position: relative;
         text-align: right;
         -moz-opacity:0 ;
         filter:alpha(opacity: 0);
         opacity: 0;
         z-index: 2;
    }Now you have to choose which solution you like most:
    http://www.quirksmode.org/dom/inputfile.html
    http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom
    Seems like a nice plug-in solution. :)

Maybe you are looking for