cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Upload Collection does not works when a file is attached via drag and drop.

0 Kudos
1,091

Hi Team,

I have a screen where I have Upload Collection control(SAPUI5 version 1.85). Here when I try to attach a file by clicking on Add Button it uploads the file but, when I try to drag and drop the attachment it doesn't uploads.

Requesting you for your guidance to resolve this issue.

Looking for workaround if its standard issue.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

consoleerrors.pngHi alex.necula ,

I am using chrome as my browser. Yes the control changes when I drag and drop the file like you mentioned in the screenshot. I debugged in the backend and I got the following errors in console.

former_member620231
Participant
0 Kudos

It seems like you have 3 requests (PUT, DELETE and POST) but I am not sure why.

Or is it that you wanted to test the create, update and delete functionalities?

Also, there is an error in BaseController which I believe it is your file so you can start with that.

What did you see when you debugged in the backend? Is the content of the file arriving? Is it saving the content (like inserting it into a table or something else)?

Also, please don't make a response for every comment. You can instead add a comment to the response so the discussion would stay coherent for others to see.

0 Kudos

After debugging in the backend I saw the content file arriving but it doesn't save the content in the DB.
I checked the URL for adding the attachment via Add button or Drag and Drop its the same for both.

0 Kudos

Hi alex.necula ,

I am using the version 1.85. Also I dont see any error in my console while drag and drop.

former_member620231
Participant
0 Kudos

What browser are you using?
Is the control changing when you are dragging a file like below (Drop files to upload)?

Is the request to the backend sent?

What is the response from the backend?

Can you debug in backend?