I'm building a nice app with the .NET client. But i'm running with some questions.
I've noticed that in the Podio Building Blocks there's no File Upload block, and the Image only supports image mime type formats. It would be great that in future you could support a file upload block.
Going other way around I'm trying to upload the files and sending them as attachments on a Item object. Alltought it always throws me a null reference exception. I'm I missing something here?
HttpPostedFile file = HttpContext.Current.Request.Files[requestFile];
if (file != null && file.ContentLength <= 0) continue;
Byte data = new byte[file.ContentLength];
file.InputStream.Read(data, 0, file.ContentLength);
var fileAttachment = client.FileService.UploadFile(data, file.FileName, file.ContentType);
if (fileAttachment.FileId != null) fileIds.Add((int) fileAttachment.FileId);
item.Files.Add(fileAttachment); // THROWS EXCEPTION
Also in the settings of my App in Podio I've checked the option 'Files can be attached'.