Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andreas Älveborn 31 posts 52 karma points
    Sep 11, 2015 @ 07:15
    Andreas Älveborn
    0

    What is the files argument in contentResource.save

    Hi, I'm creating my own property editor and I'm about to save an existing node but there is an undocumented argument in the save action.

    From Belle

    contentResource.getById(1234)
    .then(function(content) {
             content.name = "I want a new name!";
             contentResource.save(content, false, files)
               .then(function(content){
                   alert("Retrieved, updated and saved again");
               });
       });
    

    The files argument should be a collection of files for the document. If I leave that with an empty array, will it delete any associated files with the document or is there som way to get the collection of files from the page and re-post it as an argument?

    Could anyone spread som light over this files argument.

Please Sign in or register to post replies

Write your reply to:

Draft