kozmoz / html5profileimageuploader Goto Github PK
View Code? Open in Web Editor NEWHTML5 widget for uploading an image. The scaling and cropping is done client side. Scaled version of the image is uploaded to the server through AJAX call.
HTML5 widget for uploading an image. The scaling and cropping is done client side. Scaled version of the image is uploaded to the server through AJAX call.
I debugged a lot, found it is a blob issue.
http://stackoverflow.com/questions/9795273/chrome-webkitblobbuilder-doesnt-append-data/13057335
I figured out a simple work around, modify in jquery.html5uploader-1.1.js
// Detect if Blob object is supported.
//if (typeof Blob !== 'undefined') {
// return new Blob([buf], {type: mimeString});
//} else {
// window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder;
// var bb = new BlobBuilder();
// bb.append(buf);
// return bb.getBlob(mimeString);
//}
return buf
Wonder if you have better fix
Thanks,
Leon
I just updated my iPhone 5 to iOS 8. The demo uploader worked on the previous version. Now It works up until the "use photo" is clicked and then it just shows the spinner. It does the same thing in my implementation of your code as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.