Hello im trying to create a method which allows the user to upload a file (e.g. an image) and some additional data as a multipart/form-data request. i would like to process the file and saving a reference into the database.
the curl command
curl -i "https://eu-api.backendless.com/XXXXXXXX-A78D-BFC4-XXXX-XXXXXXXXXXX0/09A2FC7F-XXXA-4X77-XXXX-XXXXXXXXXXX/services/my_service/my_method" -F file=@test.txt
results into this error
{"code":14004,"message":"Service invocation failed: Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value\n at [Source: (ByteArrayInputStream); line: 1, column: 3]","errorData":{}}