Skip to Content
0

SAPUI5 UploadCollection instantUpload progress

Apr 30 at 01:06 PM

34

avatar image
Former Member

Hello,

I have a problem with UploadCollection control. I want to provide user with progress indicator. However, it is not shown. When I set instantUpload to true it is showing, but when I set it to false and manually call upload() on button click it does not work. I can't find anything about this behavior in docs. Here is xml snippet for this view.

<UploadCollection
   id="UploadCollection"
   maximumFilenameLength="100"
   maximumFileSize="10"
   multiple="true"
   sameFilenameAllowed="true"
   instantUpload="false"
   change="onChange"
   fileDeleted="onFileDeleted"
   typeMissmatch="onTypeMissmatch"
   filenameLengthExceed="onFilenameLengthExceed"
   fileSizeExceed="onFileSizeExceed"
   uploadComplete="onUploadComplete"
   beforeUploadStarts="onBeforeUploadStarts">
</UploadCollection>
<Button
   id="Button"
   text="{i18n>upload_now_all}"
   press="onStartUpload">
</Button>

Thanks in advance,

Jakub

10 |10000 characters needed characters left characters exceeded
Former Member

Well, of course I can put custom progress, but I'm wondering, why the default progress does not work when using instantUpload="false".

Default progress looks like this:

capture.png (18.6 kB)
0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

VIPLOVE KHUSHALANI May 01 at 06:58 AM
0

Are you putting your custom progress indicator ?? than you need to enable display before upload starts function and disable it on uploadComplete event

Thanks

Viplove

Share
10 |10000 characters needed characters left characters exceeded