knockoutjs-file-binding icon indicating copy to clipboard operation
knockoutjs-file-binding copied to clipboard

Use of prohibited and allowed

Open DriesSch opened this issue 9 years ago • 2 comments

Hello,

Thanks for this nice piece of code! Can you shortly show me the use of prohibited and allowed please?

Do I have to pass .pdf or application/pdf ?

Thanks in advance!

DriesSch avatar Apr 28 '15 08:04 DriesSch

Glad you found this useful. The prohibited and allowed types are mime types, so "application/pdf", "image/png", etc.

TooManyBees avatar May 02 '15 04:05 TooManyBees

Thanks a lot! Only issue I have with this code, uploading really large files isn't possible because conversion to Base64 will put it in string format, and memory limitations for string in JS are exceeded

DriesSch avatar May 04 '15 07:05 DriesSch