Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Swift API: how to put object correctly?

Hi, I'm trying to use Swift API with Postman by Google. When I put a text file into the repository the file is corrupted. When I download it from Horizon the file content is:

------WebKitFormBoundarykaS4gmBBlz1AFxrn Content-Disposition: form-data; name="file"; filename="prova.txt" Content-Type: text/plain

Hello ------WebKitFormBoundarykaS4gmBBlz1AFxrn--

but the uploaded file content is only "Hello"

What's wrong?

Swift API: how How to put object correctly?using Postman with Swift API?

Hi, I'm trying to use Swift API with Postman by Google. When I put a text file into the repository the file is corrupted. When I download it from Horizon the file content is:

  

------WebKitFormBoundarykaS4gmBBlz1AFxrn Content-Disposition: form-data; name="file"; filename="prova.txt" Content-Type: text/plain

text/plain

Hello ------WebKitFormBoundarykaS4gmBBlz1AFxrn--

------WebKitFormBoundarykaS4gmBBlz1AFxrn--

but the uploaded file content is only "Hello"

What's wrong?