Upload Multiple Files


#1

Hi there,

We are trying to use the upload component from Canvas, but seems like I can only upload one file at a time, but we have like 20 files to upload, that could be quite annoying for end users.

So wondering if there is any possibility to allow bulk upload.

Regards

Tat


#2

Hi @twong,

No there isn’t, you could put multiple directives on the page. Are the files they are uploading in one folder?


#3

Hi @twong

You can write your own logic using the Upload service. Canvas is using this library: https://github.com/danialfarid/ng-file-upload


#4

Hi @tryan

I am trying to use the Canvas upload file api, but I can not get the cookie, session id. I saw the cookie has been set the httponly flag, can I remove it form Canvas’s config? or get session id from Canvas’s function?


#5

Hi @rwang

Why do you need the cookie? Are you uploading from another application?


#6

Hi @tryan,

I need to upload multi files on the same application, I used the library which you mentioned.


#7

Hi @rwang,

If it is in the same applications the cookies are added automatically. You should just be able to call the Upload service.


#8

Hi @tryan,

Thanks for your great support. It works now.


#9

Hi rwang,
If you dont mind,
could you send me the code you have used.
I might need it for some clients.
Thanks
Ilia
js and html


#10

Hi @ishapiro,

Ok, I have sent to your email :grinning: