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

Need Clarification in FileUpload...

Hi experts,

My Requirement is:

While clicking File UpLoad Browse button it should take me to the file loction of my desire by default.

Say: I have created a folder with the name of the user in the Server. When i access from the client machine, on click of the browse button the file upload dialog box should locate the user named folder in the server by default.

Please forward your suggestion.

Thanks,

RPN

Edited by: RPN on Dec 12, 2008 2:46 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 10:40 AM

    RPN,

    Your requirement is to upload files to a particular server directory that you have created..

    IWDUpload UI element get you the Resource and while writing it to the server, specify the path to it.

    
    String path = "D:\\Test\\";
    
    byte[] bytes = new byte[ 1024];
    
    FileOutputStream out = new FileOutputStream( new File( path));
    InputStream in = resource.read( true);
    int len;
    while( ( len = in.read( bytes)) > 0)
    {
    	out.write( bytes, 0, len);
    }
    in.close();
    out.close();
    
    

    vinod

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2008 at 01:57 PM

    Hi

    Pls follow this link might helps This contains the complete creating a folder and also uploading the file

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/607e9392-8167-2b10-b9a8-e0aa297e88c6

    Regards

    Prasad.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2008 at 02:12 PM

    Hi,

    Say: I have created a folder with the name of the user in the Server. When i access from my local machine, on click of the browse button the file upload dialog box should locate the user named folder in the server by default.

    I dont think this will work. especially pointing to the folder in server(How will the client browser no the shared folder of server?)

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2008 at 11:12 AM
    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.