Hi Christophe,
What error did you get?
Hi,
I'm trying to upload files using the SOAP API using vb.net.
I follow this basic scenario:
- 1 Createmessage with entity document, with file content
- 1 Createmessage to link document to other entity.
Everything is ok until I face a file larger than 5MB, then the upload fails.
Is there another method in the API that would allow to upload larger files?
Thanks,
regards,
Please sign in to leave a comment.
Hi Christophe,
What error did you get?
Hi thanks a lot for your reply,
The error says "Max field length exceeds 5 Mb" . however I did managed to found a solution today.
For people who might end up on this thread here is what I did:
- Instead of sending the file as part of the CreateMessage for the document (in the field "content"), if the file is more that 5 Mb, I send content as empty
- Then call getUploadUrl
- Do a POST of the file on this url, while providing the document Id from the first call.
- Then continue as usual to attach the file to desired parent entity.
Regards,
Hi Christophe,
That is awesome! Thank you for sharing that solution with us!