I'm new to nuxeo and trying to understand it by nuxeo university tuitorials and the nuxeo documentation. I'm trying to upload a file and for that, I followed the tuitorial.
- I generated the batch ID.
- Uploaded the file using
URL
http://localhost:8080/nuxeo/api/v1/upload/batchId/0
Headers
Authorization: Basic QWRtaW5pc3Rybnhvcjptb2hpdC4xMjM0 Content-Type: application/octet-stream X-File-Name: licenseFile X-File-Type: text/plain
File
file: /var/lib/nuxeo/server/LICENSE.txt
- Attach the uploaded file to the document.
But when I check the file in nuxeo web UI, It does not have the original content but something else:
------WebKitFormBoundaryNyRaKLr8FB6Afcu2
Content-Disposition: form-data; name="file"
/var/lib/nuxeo/server/LICENSE.txt
------WebKitFormBoundaryNyRaKLr8FB6Afcu2--