AnsweredAssumed Answered

Upload files using upload api

Question asked by phil89 on Mar 7, 2018

Hey there

 

I've read a lot and I've no idea whats going wrong while using the upload api. My Alfresco Version is 5.1 and I can't upgrade to 5.2 using :/

I try to upload a normal pdf file and using Postman. I use the basic authentification with username and password. The pdf file ist selected by form-data. Maybe someone can help, or got another idea ?

 

POST /alfresco/s/api/upload HTTP/1.1
Host: localhost:8181
siteid: ju
containerid: documentLibrary
description: Test description
contenttype: cm-content
thumbnails: doclib
overwrite: false
destination: 00/01 444
Authorization: Basic YWRtaW46c29mdHdhcmUx
Cache-Control: no-cache
Postman-Token: 3b8a93d3-5b03-4a9f-9a0e-994dc83d0bcc
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="PDF.pdf"
Content-Type: application/pdf


------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name=""


------WebKitFormBoundary7MA4YWxkTrZu0gW--

 

 

 

 

{
"status": {
"code": 400,
"name": "Bad Request",
"description": "Request sent by the client was syntactically incorrect."
},
"message": "Required parameters are missing",
"exception": "",
"callstack": [],
"server": "Community v5.1.0 (r127059-b7) schema 10.001",
"time": "07.03.2018 14:48:34"
}

Outcomes