Skip to Content
avatar image
Former Member

SAPUI5 UploadCollection instantUpload progress

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

Add comment
10|10000 characters needed 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)
  • Get RSS Feed

1 Answer

  • May 01 at 06:58 AM

    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

    Add comment
    10|10000 characters needed characters exceeded