.NET Client attaching files on item

Answered

Comments

4 comments

  • Casper Fabricius

    The .NET client is not as clever and developer-friendly as you might expect. Some things has to be done a bit more manually, and this is one example.

    Calling item.Files.Add(fileAttachment) will not help you actually attaching a file to an item. The Files area has an operation for attaching a file to an item, but it's not implemented in the .NET client yet. You can however still call the operation through the .NET client. This is one example of how to do a POST request using the underlying PodioRestHelper.

    You can also update the item with one or more file_ids. If you look here and here it should give the general idea.

    0
    Comment actions Permalink
  • Joao Antao

    Hey Casper, thanks for your fast answer.

    Do you know if it's gonna be implemented soon?

     

    0
    Comment actions Permalink
  • Casper Fabricius

    Probably not. The client was contributed by a Podio user, and we don't have any dedicated .NET people in our own team.

    However, this shouldn't stop from doing what you want. You just have to write slightly more code than you would have else-wise. People were using the Podio API from .NET before any .NET client existed at all.

    0
    Comment actions Permalink
  • Joao Antao

    Yes, probably will do it myself soon and extend it to the .NET Client.

     

    Thanks.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk