Uploaded PDF files are corrupted through the API

When I upload documents through the API my files are corrupted when I see them on the App. When I download the uploaded file the files are corrupted. When I first manually upload the files and then download them they are right. 

---- HTTP Request
POST https://app.smartfile.com/api/2/path/data/3/verk HTTP/1.1
User-Agent: Mozilla/5.0
Content-Type: multipart/form-data; boundary=boundary
Cookie: csrftoken=AIME2P7ZkUHWhY70pAulKyEKxV8pkHBv; sessionid=3a6db355c4cf8d89784e29dec144b1e4
Authorization: Basic czRjNEVKOH......
Cache-control: no-cache

--boundary
Content-Disposition: form-data; filename="180711erv1910.jpg";

/9j/4RRQRXhpZgAASUkqAAgAAAATAAABAwABAAAAYBUAAAEBAwABAAAAQA4AAAIBAwADAAAA8gAAAAYBAwABAAAAAgAAAA8BAgAGAAAA.....

--boundary--

when i look to the encoded64 data and put this in an external tool the file is correct, only when I look at the site after uploading all the files are corrupted.

Please can someone help us because this must be working before august 1st of deadlines with holidays and so on

Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 1 yr agoLast active
  • 50Views
  • 1 Following