I want to read the actual file path so that I can archive the file.
The issue is when I am using UI Element Fileupload, it always shows C:\fakepath\filename.txt in filename property of UI.
Is there a way I can get the actual file path or what is alternative ?
Request clarification before answering.
Hi Khalid,
You can get the full file path. Please try the below mentioned code:
DATA : lv_file_upload TYPE REF TO cl_wd_file_upload,
lv_filename TYPE string.
lv_file_upload ?= wd_this->mr_view->get_element( 'FILEUPLOAD' ).
* FILEUPLOAD is the ID of the fileupload Ui element.
lv_filename = lv_file_upload->get_file_name( ).
Regards,
Sanjeev Kotwal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.