on 05-20-2008 7:26 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> 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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.