Skip to Content
0
Aug 17, 2005 at 12:25 PM

File upload doesnot working in a new view created in ICWC

48 Views

Hi,

I created a new view and controller similar to MailAttachment controller. The file upload is not working.

In the layout, the following code is added

<htmlb:fileUpload id = "myFileUpload2"

size = "30" />

In my new controller class, the following code is written to do file upload

Data: lv_id type string,

data1 type ref to cl_htlmlb_fileupload.

lv_id = me->get_id( 'myFileUpload2' ).

data1 ?= CL_HTMLB_MANAGER=>GET_DATA( request = runtime->server->request name = 'fileUpload' id = lv_id ).

On executing, Data1 doesn't contain the uploaded file details.

In the method IF_HTMLB_DATA~RESTORE_FROM_REQUST of class CL_HTMLB_FILEUPLOAD, the num_multiparts is always returned as 0.

num_multiparts = request->num_multiparts().

Thanks

G.Raja