1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

update record setBinaryFieldValue clientside

Discussão em 'PSDN - Forum' iniciado por Jorrit, Agosto 29, 2018.

  1. Jorrit

    Jorrit Guest

    hi Rollbase Team,

    I am looking for an option to clientside update an image upload field.

    Below my function:

    function readAndSave(file) {


    if ( /\.(jpe?g|png|gif)$/i.test(file.name) ) {

    var reader = new FileReader();

    reader.addEventListener("load", function () {
    var image = new Image();
    window.imageinfo = image;
    //image.height = 100;
    image.title = file.name;
    image.src = this.result;

    var v_imagefile = image.src;

    var v_updateArr = { "odossierp_image1" : image.src }

    rbf_updateRecord("odossier", v_recordid, v_updateArr, false, function callback(result){
    console.log("result " + result);
    }, false);

    }, false);

    reader.readAsDataURL(file);
    }

    }

    The update record returns an Error 400 (Bad request)

    Can anybody help me with this?

    Regards Jorrit

    Continue reading...

Compartilhe esta Página