File Upload element Problem

Hello All,
We have a problem regarding the File Upload button in Webdynpro.
when we upload a file using this element and goto another view and comeback, the upload element is not showing any filename.
But when debugged, the fileupload context node still has the data. Just it is not showing in the UI.
Is it an existing problem with File Upload? Or do we have to do anything to make the filename visible.
Thanks,
Anand

Hi,
this works as designed, see the section on browser details <a href="http://help.sap.com/saphelp_nw70/helpdata/en/b3/be7941601b1d09e10000000a155106/frameset.htm">here</a>
Regards, Heidi

Similar Messages

  • File Upload demo problem

    Hi!, i have a problem with the File Upload Demo when it calls this line:
    hDirectoryObject := JFile.new(directory);
    and the error is: error 6508 "PL/SQL: could not find program unit being called"
    That's ok, but anybody knows why should the program couldnt find the routine ?
    And just one more thing...where can i look for JFile method description ??
    Thanks a lot :) !!
    Cristian.

    Is this 9i or 6i?
    JFile is an imported wrapper for a Java Class - it should be in the Demo form already - you could try a compile all on the file just in case.

  • How to disable the text field in File upload element?

    Hi,
    How can we disable the text field in the "File upload" UI element so that the user won't be able to type the file path there, but he will still be able to browse the file using the Browse button?
    Regards
    Praveen

    Hi Praveen,
    This is not possible with the Web Dynpro File Upload UI element.
    Thanks,
    Samta

  • File Upload/Download Problem

    Hi,
    I have a fileupload button. The attributes type is XSTRING, which i bound it with "data" property of download.
    When i download this file with "download" element, it comes in a zip file and as XML files. Only the jpg files are downloaded correctly.
    How can i solve this?
    Thanks.

    Hi,
    I am so sory for my very late answer.
    If you want to upload/download files, you should have a node which includes attributes
    (attribute names are just example ):
    1) filename(type: for example afilename),
    2)mimetype (type : string),
    3) file(type : a data element with type 'RAWSTRING').
    You must match your fileupload element's attributes with them:
    "DATA" attribute --> file ,
    "fileNAME" attribute--> filename,
    "mimeTYPE" attritube -->mimetype.
    When you want to download this file, you should put a filedownload element and match this element's attributes with the node's attributes which i described above.

  • File Upload / ENCTYPE Problem - Please HELP !!!!!!

    Please HELP !!!
    I have following config. MS Windows Server 2003 with
    Coldfusion 7. Everything is working fine.
    But now I want to upload a file, and there is the problem
    that I have the wrong content type on my action page, and so my
    form field "FileContents" is empty.
    On my action page i have got content_type
    "application/x-www-form-urlencoded" instead of
    "multipart/form-data".
    Here is the code:
    --------------------uploadfileform.cfm--------------------
    <cfoutput>
    <form enctype="multipart/form-data" method="post"
    action="uploadfileaction.cfm" name="uploadForm" id="uploadForm">
    <input name="FileContents" type="file"
    id="FileContents">
    <br>
    <input name="submit" type="submit" value="Upload File">
    </form>
    </cfoutput>
    --------------------uploadfileaction.cfm--------------------
    <cffile action="upload" fileField="FileContents"
    destination="e:\tempdir" nameConflict="MakeUnique">
    If there is anyone who can help me please be so kind and tell
    me the solution.
    Kind Regards!

    On my action page i have got content_type
    "application/x-www-form-urlencoded" instead of
    "multipart/form-data".
    There is no need for that sort of thing on the action page.
    On the action page the cffile tag is enough.
    Everything else seems to be all right, except one. The
    destination attribute should end with a back-slash. The correct
    value is
    destination="e:\tempdir\".

  • File Upload -- MultipartRequest Problem

    I use com.oreilly.servlet.MultipartRequest to upload files through a servlet.
    This works fine, but when the size of a file exceeds the maximum size,
    I need to handle the IOException but it doesn't work.
    here is the code:
    try {
    if (file != null) {
    File outputFile = new File(fullPath,fileName);
    FileInputStream inFile = new FileInputStream(file);
    FileOutputStream outFile = new FileOutputStream(outputFile);
    while (inFile.available()>0) {
    outFile.write(inFile.read());
    inFile.close();
    outFile.close();
    return (fileName);
    catch( java.io.IOException e ) {
    System.out.println("DiskFileUpload write failed" + e.toString());
    return (null);
    catch ( java.lang.Exception le) {
    System.out.println("DiskFileUpload write failed" + le.toString());
    response.sendRedirect("error.html");

    What is the problem you are getting?
    Are you getting Page Cannot displayed Browser page?

  • Jnlp file parameter element problem

    Hello all,
    I have a jar file which contains all the class files and an configuration file of type(.cfg).
    For my application to run properly i need to pass this .cfg file as an argument to the main method in one of the file in the jar...
    i did pass the name of the file as one of the parameter element,but my application is not initialized and not working.but the jar files have been deployed in the local machine.
    so my question is , is there a way so that i can pass my file as a parameter to the main method through jnlp xml file.

    thanks andrew,
    but my problem is that i need to pass the path of my file along with the name of the file to the main method ...and in turn my main method will do all the required processing work..
    the jar file that is to be deployed contains the class files and the .cfg file..
    my jnlp files looks as follows:-
    <jnlp spec="1.0+" codebase="$$codebase" href="voicechat.jnlp">
    <information>
    <title>SIP Based Voice Chat</title>
    <vendor>First Internet Systems Pvt Ltd</vendor>
    <description>Voice Chat</description>
    <description kind="short">Voice Chat </description>
    <icon href="images/demologo.gif"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5" href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="sip.jar"/>
    <jar href="ua.jar"/>
    </resources>
    <application-desc main-class="local.ua.GraphicalUA">
    <argument>-f</argument>
    <argument>a.cfg</argument>
    </application-desc>
    </jnlp>
    the second argument that i had passed is the name of the file in the jar to be passed..
    but as a result when i invoke this file, the jar files are deployed but application is not starting as expected..for it to work the file and its path has to be passed to the main method..
    which is what i tried through argument element...but it does not seem to work..
    so all that i need to know is that, is it possible to pass a file and its path as an argument in the jnlp file..

  • (JSP/SERVLET) File upload Character problem form enctype="multipart.....

    Hi,
    When i upload a file from <form> ( jsp page ) and send it to my object class(struts,servlet) , the filename �����.doc are replaced by ?????.doc. in the database.
    I make few test by adding UTF-8 charset and content type to the jsp but still doesn't work...
    Ex :
    String encod = request.getCharacterEncoding();
    if (encod == null || !encod.equals("UTF-8"))
    try
    request.setCharacterEncoding("UTF-8");
    catch (UnsupportedEncodingException e)
    System.err.println("HttpMultipartRequest - : " + e);
    It's not a charset problem in the database because i try to do with an input type="text" and its working. It's just not working with the input type="file".
    And i also add directly ��� character into the database and its working.
    it's will be a pleasure if someone could response to me .
    thanks
    Jonathan

    warnerja,
    Not sure why you always play the part of the
    cross-post police... Seems like waste of effort to
    me.To each his own. I'm not sure why you feel the need
    to question my motives. Also not sure why you have
    posted requests to Sun regarding forum features...
    "Seems like a waste of effort to me.". But I wasn't
    going to call you on it.touch�
    :-)

  • File Upload Concept Problem

    Hi, I am writing a WAS4 webapp which will allow users to upload files to the WAS machine. I've written and deployed apps on WAS4 before and I create a war file and deploy it via the admin console. But something I don't quite understand is that if I create a folder, say 'upload' underneath my context root such that the path is /contextRoot/upload and this folder is inside the war file, can a user upload into this folder?
    If not, then where must I place the folder in order to perform uploads and how can I reference this folder from my java code? Do I give it absolute machine paths, or some other sort of context relative path?

    Did you try using Jakarta FileUpload? It will answer all your questions.
    http://jakarta.apache.org/commons/fileupload/using.html

  • File upload component problem

    hi,
    When i use fileupload component in my page, Turkish characters is not renderind and i see them as question mark. Changing page encoding is not working and solving my problem, too.
    any suggestion would be appreciated.
    Regards...

    I got exact the same problem, but with Chinese characters display. Does that means we can only use upload with English characters? Any solutions in the future?
    Thanks,

  • To get content of file upload element in web dynpro

    Hi . . .
    h1 : how can i get the string content   (i.e., path of file) store in variable in web dynpro abap . . . .

    Hi . . .
    h1 : how can i get the string content   (i.e., path of file) store in variable in web dynpro abap . . . .

  • Unable to get the filename from file upload UI element

    Hi,
    I added a FileUpload UI element.
    I created an attribute of type resource , assigned to the resource property of the file upload element.
    I created an action button called upload and added the following code.
    try {
           IWDResource resource = wdContext.currentContextElement().getFileupload();
          } catch (Exception e) {
             e.printStackTrace();
    when I debug to see the value of resource it is null.
    Please let me know where I am going wrong.
    Regards,
    Narayani

    Hi,
    Check if there are any space characters in your uploading path (file path).
    First try to upload a file without any space characters in the uploading path(file path). If the problem is with the space characters then use the below encoding & decoding to resolve that issue.
    Encoding while uploading the file:
    // Getting the file resource
    IWDResource resource = element.getCtx_va_FileResource();
    //Getting the resource name
    String resourceName = resource.getResourceName();
    //Encoding the resource name
    String encoderesourceName = java.net.URLEncoder.encode(resourceName,"UTF-8");
    Again while downloading you can use decoder.
    Hope this helps to resolve your issue.
    See this below link.
    Re: File Upload Problem
    Try this encoding even if there are no space characters.
    Regards,
    Charan

  • File Upload UI Element

    Hi,
      We are using the Standard Webdynpro File upload element in the screens. When the user clicks on the 'Browse' button the File Selector popuop is thrown using which the user can select the file.
      Can we have on specific type of files be displayed in the 'File Selector' popup. currently ALL the files are displayed, though we have the option of '.html' files in 'Files of Type' dropdown.
      How can we add custom file types say .csv file selection.
    Regards,
    S.Divakar

    Baskaran,
    The key here is "ACCEPT" attribute of file upload. Even if SAP add it later, we have to wait for MS to fix IE (make it true HTML 4.0 browser) -- IE docs even does not mention ACCEPT attribute on <input type="file" />
    Compare
    http://www.htmlhelp.com/reference/html40/forms/input.html
    and
    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • File upload problem when form consists of more than 5 elements

              Hi,
              I noticed some bizarre behaviour that only occurs when going through an ssl proxy
              link to httpclusterservlet on our clustered environment, does not occur without
              ssl proxy.
              I have two different multipart forms One of them has:
              1.one file upload field and 7 other input fields
              The other one has:
              2.one file upload field and 2 other input fields
              Number 2 works as expected,
              but number 1-- it appears as if my servlet is called twice and the stream is corrupt--
              for example it starts of with the boundary, but after the fifth element half it
              gets cut off and then my servlet is called again with the remaining elements leaving
              off with where it was cut off.
              I don't think this is normal behaviour.
              Any ideas?
              

              Hi,
              I noticed some bizarre behaviour that only occurs when going through an ssl proxy
              link to httpclusterservlet on our clustered environment, does not occur without
              ssl proxy.
              I have two different multipart forms One of them has:
              1.one file upload field and 7 other input fields
              The other one has:
              2.one file upload field and 2 other input fields
              Number 2 works as expected,
              but number 1-- it appears as if my servlet is called twice and the stream is corrupt--
              for example it starts of with the boundary, but after the fifth element half it
              gets cut off and then my servlet is called again with the remaining elements leaving
              off with where it was cut off.
              I don't think this is normal behaviour.
              Any ideas?
              

  • File Upload UI element is not working properly inside Table Popin container

    Hi Expert,
    I created a table with popin, i placed file-upload UI element inside table popin contatiner.
    The file upload UI element is displaying properly but, when i click the browse button to select  the file, the file open dialog box is not popping out.
    will table popin support file-upload UI element inside it?
    it not is there any other way to call a file_open dialog box from inside the table popin.
    Thanks,
    James

    If you are on NetWeaver 7.01, you can try both the ACFUpDownload UI element or try creating your own FileUpload in Adobe Flex with Flash Islands.  ACFUpDownload requires the KPRO by default (which is why the same application isn't working for you), but you can write your own handler class to act as the KPRO receiver.  Here is an eLearning on the topic:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
    and source code:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70645070-bb00-2c10-f086-f126721acdb4
    If you want an eLearning on the FlashIslands approach, you can find it here as well:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d42644-91ef-2b10-228c-9e0ae75b274e
    and Source Code:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f044b62c-90ef-2b10-64a6-9ec25294d133
    However in both of these approaches you still have to be careful with how you handle large files.  The problem is that they are processed often a single binary string.  This makes the processing easy, but requires total amount of session memory at least as large as the file being uploaded.  In NetWeaver 7.02 ABAP adds the concept of Streams and Locators to help with the partial processing of large files.  This feature doesn't come until later this year, but if you are interested you can learn about it here:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f983df-213e-2c10-ba89-b5a12ef178e8

Maybe you are looking for

  • I can no longer edit in "Get Info" since downloading iTunes 11.2.2.3. Please help.

    Since downloading 11.2.2.3 I can no longer edit info or add album artwork to any music I add to my library that hasn't been bought through iTuens. It will allow me to make changes on the "Get Info" section but when I hit OK nothing happens. Anybody g

  • Problems getting started with ipad

    I just bought an Ipad and I connected it to my computer and downloaded itunes as it said and my ipad still has that message on it to connect to itunes.  what am I doing wrong???? Thanks

  • Calendar's before(Object when) method

    Can anyone shed some light on this subject? Why is it permissible to call cal.before(myTextArea) or cal.after("Hello") ??? The API even defines Object when as a Calendar instance! But this isn't enforced in the method signature! What's most alarming

  • Schema name is not showing in the Data load

    Hi All, I am trying to load a CSV file using oracle apex data load option. The options are using a new table and file upload(.csv). In the load data page, the schema name is not listing my current schema because of which i could not to upload the CSV

  • Duplicate Photo Library

    When I sync my phone it syncs my pics from my "pics" folder to my Photo Library as well as it has a folder called pics right under my Photo Library thus creating two folders with all the same pics, is there anyway to get rid of the pics folder from m