Skip to Content
avatar image
Former Member

File Upload in Web Dynpro

Hi all,

I need to upload file from user local computer into Web Dynpro context, but standard FileUpload component doesn't look very "attractive" to me. There are 3 main reasons:

1. when user don't use Browse functionality, but he/she types directly for example == "xxxx" (not valid absolute windows path) into input field of FU Component and then click Upload, application freeze - and loading that 'file' forever.....

2. don't know how to specify custom file types in showed FileChooser (predefined are AllFiles, Pictures, HTML)

3. Browse label is not internationalized, no possibility to change that text (and that button also looks "different" 😊)

How can I eliminate these minuses, or is here alternative solution for file uploading file in WD? My customer environment is NW 2004.

Regards,

Juraj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 03, 2008 at 04:56 AM

    Please go through this link and see how to internationalize the File Upload UI component.

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71

    I am not sure about an alternative way to get the client file in to IWDResource form. Will try to get you more docs on mentioned subject.

    Regards

    Vinod V

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 16, 2008 at 02:28 PM

    Go through dis link, all details u will find for uploading files.

    /docs/DOC-8061#41 [original link is broken]

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi madan,

      no, I didn't find solution for this.

      One way is to create own upload component using servlets - for example you can use [something like this|http://commons.apache.org/fileupload] - and than make cooperation with your Web Dynpro application. But i didn't go through this alternative, finally my customer was satisfied with solution in web dynpro 😊.

  • avatar image
    Former Member
    Jul 03, 2008 at 06:18 AM

    Hi juraj,

    you have to use it as it is. there is no option.

    and you need to take care of user not entering file path manually..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 03, 2008 at 07:37 AM

    Dynpro UI elements has limitations. But we can use them the way we want within these limitations.

    1. when user don't use Browse functionality, but he/she types directly for example == "xxxx" (not valid absolute windows path) into input field of FU Component and then click Upload, application freeze - and loading that 'file' forever.....

    If there is a fixed place to hold the documents, we can prefix the path upto the filename.

    2. don't know how to specify custom file types in showed FileChooser (predefined are AllFiles, Pictures, HTML)

    we can get the MIME type from the resource. And further processing can be restricted.

    3. Browse label is not internationalized, no possibility to change that text (and that button also looks "different" 😊)

    I Agree that we can't change "Browse", but still we can have the orientation, if your browser is Arabic, it got aligned at right hand side.

    thread:

    nikhil

    Edited by: Nikhil ßos on Jul 3, 2008 1:07 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi juraj,

      yeah. you are right. We can't prefix the filename. Thanks for reminding me as there is no direct access from browser to client except through File UI elements.

      nikhil