Question

FileAPIService - Error

Hello all,

When we tried to upload any file in Attachment detail, FileApiService is called and the file gets uploaded successfully.





When I tried to call the same API in postman, bypassing all headers and Query parameter it resulted in an error stating that: 'Can't parse file length'. I have no clue why the error is popped up.





Kindly help me in solving this issue.



Thanks and Regards,

Adharsh S

Like 0

Like

3 comments

Dear Adharsh,

 

Most probably, the issue happened because you didn’t specify a body of the request. The body contains file data in binary format. You can see it in the “Request payload” section from the “Headers” tab:

 

 

As data is in the binary format, so it is impossible to call the “FileApiService” using Postman. Please debug the client code of the application in order to determine how this service is called in Creatio.

 

Best regards,

Norton

Norton Lingard,



I have specified the request body, to add the binary files in Postman by adding the binary file in the "Body" tab of the "binary" option. But still the same result.





Even I have added the actual file in the "form-data" option under the "Body" tab. But the same error persists. Let me check by debugging the client code.



Regards,

Adharsh S

Dear Adharsh,

 

Please debug the client code of the application in order to determine how this service is called In Creatio. Please take a look at the “upload” function that is located in the “ConfigurationFileApi” schema.

 

Best regards,

Norton

Show all comments