Skip to Content
avatar image
Former Member

Sapui5 UploadCollection drag a file into UploadCollection it doesn't work

Due to the project needs . I used UploadCollection control to implement file upload.

I found a problem that when i drag a file into UploadCollection It doesn't work(upload) correctly.But if I click "plus" button to add a file .it can upload successfully.

So,I wanna find whats wrong with it.

Finaly,I found the abnormal code.

if i drag a file " this._aFileUploadersForPendingUpload[i].getValue()" it returns false

but i click "puls" button it returns true.

In my project code,i change the url & sendXhr status when i upload .

i tried many methods to fix it ,but i failed.

pls help me!

thanks vary much

upclc1.png (47.0 kB)
upclc2.png (14.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 20 at 06:42 AM

    Sorry

    Correct it

    if i drag a file " this._aFileUploadersForPendingUpload[i].getValue()" it returns ""

    but i click "puls" button it returns the uploadUrl of item.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11 at 01:00 AM

    I am also facing the same issue. UploadCollection works fine when we add files using "+" icon, not when we drag and drop. Seems like the header parameters are removed when we adding through drag and drop though we manually add them in the change event.

    Add comment
    10|10000 characters needed characters exceeded