Starcounter / starcounter-upload

Starcounter custom component to upload files over WebSocket
MIT License
0 stars 0 forks source link

Design & functionality proposal #6

Open jwillmer opened 7 years ago

jwillmer commented 7 years ago

I found a very nice looking upload webcomponent on GitHub. Maybe fork/merge/contribute it and extend the functionality to upload files over WebSocket?

warpech commented 7 years ago

If it is only about the looks then it might be easier to redesign the looks of starcounter-upload

warpech commented 7 years ago

But I agree this one looks more mature, with nice configuration options, etc.

jwillmer commented 7 years ago

My idea is that contributing to the control would give Starcounter a nice looking control with a lot of features and outsources the maintenance.

warpech commented 7 years ago

I think they will not agree, because there is no standard for uploading via WebSocket.

Dissecting starcounter-upload into two pieces is a nice alternative. Piece 1 reads the file from disk into an array buffer (might be using https://www.webcomponents.org/element/LostInBrittany/granite-file-reader/granite-file-reader), piece 2 uploads the array buffer over WebSocket.