Post

3 followers Follow
1
Avatar

Issue while Uploading Files larger than 5MB using the API

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,

christophe perron Answered

Please sign in to leave a comment.

3 comments

3
Avatar

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,

christophe perron 3 votes
Comment actions Permalink
0
Avatar

Hi Christophe,

That is awesome! Thank you for sharing that solution with us!

Tom Do 0 votes
Comment actions Permalink