knockoutjs-file-binding
knockoutjs-file-binding copied to clipboard
Use of prohibited and allowed
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!
Glad you found this useful. The prohibited and allowed types are mime types, so "application/pdf", "image/png", etc.
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