Skip to Content
0
Former Member
Apr 30, 2018 at 01:06 PM

SAPUI5 UploadCollection instantUpload progress

541 Views

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