sp-form/demo/full/fixtures.js
function getBase64 (file) { 
    var reader = new FileReader();
    reader.readAsDataURL(file);
    reader.onerror = function (error) {
        console.log('Error: ', error);
    };
    return reader;
}
function getBase64 (file) { 
    var reader = new FileReader();
    reader.readAsDataURL(file);
    reader.onerror = function (error) {
        console.log('Error: ', error);
    };
    return reader;
}
function getBase64 ( file ) { var reader = new FileReader ( ) ; reader . readAsDataURL ( file ) ; reader . onerror = function ( error ) { console . log ( 'Error: ' , error ) ; } ; return reader ; }
this example uses fixtures to catch requests and simulate file upload server
this example uses fixtures to catch requests and simulate file upload server