Skip to Content

location of the file uploaded

Hi All,

I am working with FileUpload UI element. I have some queries regarding this.

1) Where will the uploaded file get stored when we upload the file usinf fileupload ui element?

2)When the file is uploaded, it gives the complete path of the location of the file, how to get only the file name?Where to Handle this?

3)I want to place the uploaded file into a third party server, how can this be achieved?

4) How to restrict uploading only particular format of file? For suppose, i shud allow only to upload JPEG files?

Regards,

Madhu.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 20, 2008 at 06:32 AM

    look at the Thomas Jung's answer in this question.

    actual file location for FileUpload UI

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 20, 2008 at 11:02 AM

    Hi,

    After the FileUpload operation, the file contents are only stored in memory of the running session. If the session ends the file content is lost. It is the responsibility of the application programmer to decide what to do with the file contents. You could in turn write the content to the file system of the application server (using the ABAP DATASET commands). More common however is to write the content into the database if you really need to persist it. This is a simple process since you can now define RAWSTRING fields in the database. You just send the XSTRING variable into a SQL statement like any other type of data field.

    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.