Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of image upload #9

Open
lucasjans opened this issue Mar 16, 2012 · 3 comments
Open

Example of image upload #9

lucasjans opened this issue Mar 16, 2012 · 3 comments

Comments

@lucasjans
Copy link

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
Copy link
Owner

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

@lucasjans
Copy link
Author

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants