cancel
Showing results for 
Search instead for 
Did you mean: 

location of the file uploaded

Madhu2004
Active Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> 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.

Thanks for completely plagurizing what I wrote. There was already a link to the thread, why copy over my complete statement without crediting who wrote it? Plagurizing is theft!

Madhu2004
Active Contributor
0 Kudos

Hi Thomas,

I will get the xstring format of data and convert to string and write it to application server using DATASETS,

but how abt restricting the file formats and getting only the file name in the path?

Pleae help me in resolving this issue.

Regards,

Madhu

Former Member
0 Kudos

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