Skip to Content
author's profile photo Former Member
Former Member

file upload to km repository using webdynpro

i want to upload file to km repository. is there any mapping of repository there. can u send me the code

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 28, 2005 at 08:47 AM



    <hbj:form encodingType="multipart/form-data" >

    <hbj:fileUpload id="myfileupload" maxLength="125000" size="50" />



    public void onLoadFile(Event event) {

    FileUpload fu = (FileUpload) this.getComponentByName("myfileupload");

    // this is the temporary file

    if (fu != null) {

    // Output to the console to see size and UI.



    // Get file parameters and write it to the console

    IFileParam fileParam = fu.getFile();


    // Get the temporary file name

    File f = fileParam.getFile();

    String fileName = fileParam.getFileName();

    // Get the selected file name and write ti to the console

    ivSelectedFileName = fu.getFile().getSelectedFileName();

    System.out.println("selected filename: "+ivSelectedFileName);





    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.