Problem inserting files from API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enricorossa
    Senior Member
    • Jul 2018
    • 125

    Problem inserting files from API

    Hello, I have an entity with multiple files field, I can insert the entity correctly via API but if I try to attach the 2 files I have to upload it doesn't upload them.

    Do you have an example to insert 2 documents in the file field when I create the entity?

    my parameters are :​​

    (
    [mittenteType] => Account
    [mittenteId] => 6079ae909697b2fc1
    [destinatariType] => Account
    [destinatariId] => 6079ae909697b2fc1
    [classeDocumentale] => Array
    (
    [0] => Generale
    [1] => Sviluppo contributi
    )

    [name] => Test cedolini
    [assignedUserId] => 5d138908a44186a3c
    [files] => data:text/plain;base64,W3siaWQiOjY2LCJpZHJlZ29sYSI6MjMsInBhZ 2luYSI6MSwieCI6NzgsInkiOjEyOSwi

    )​
  • Vadym
    Super Moderator
    • Jun 2021
    • 345

    #2
    Hi enricorossa,

    Perhaps this thread will be helpful:

    Comment

    • enricorossa
      Senior Member
      • Jul 2018
      • 125

      #3
      Thank you for the answer but I had already read the documentation you indicated, the problem and I don't understand how it works.
      When I create the new record within the entity I must also insert the file within the related field, I must not insert it in document management but in an entity that has its own multiple file field.

      Sender field
      Recipient field
      Document class field
      name field
      multiple file field

      and I don't understand what to pass to the file field​

      Comment

      • enricorossa
        Senior Member
        • Jul 2018
        • 125

        #4
        ​I just can't figure out how to add the file into the multiple file field when inserting a new record via api

        Comment

        Working...