cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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 ?

0 Likes
View Entire Topic
Former Member
0 Likes

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.