EntitySpaces / entityspaces.js

A JavaScript Data Access Framework that uses Knockout
www.entityspaces.net
36 stars 11 forks source link

Example of image upload #9

Open lucasjans opened 12 years ago

lucasjans commented 12 years ago

I would love to see an example of an image upload control, from how it's handled on the in knockout, mapped to entityspaces.js and handled in the WCF. Do you know of anything close to this? I think the WCF/entityspaces.net part is easy.

EntitySpaces commented 12 years ago

Ya, that would be very cool, maybe I'll make an example that uploads the employee photo into the Northwind Employees table

lucasjans commented 12 years ago

I'm thinking about starting this one. Do you have any suggestions? I am thinking I can capture the data upload field data, but, I ready somewhere that all fields are converted to strings in KO, so that might pose a problem for binary data.

lucasjans commented 12 years ago

After researching this, I discovered it's only possible with bleeding edge browsers. Chrome, recent versions of FF and IE10. http://www.html5rocks.com/en/tutorials/file/dndfiles/

The alternative is to use flash or an iframe to send the file async to a handler that saves it.