Unable to fetch pdf content from API

Dear Appsmith Team,

I am unable to fetch the content of the PDF file that I send via REST API.

I am keeping the file type as Text and in the API I access it as abcd.files[0]

I get the full content of the PDF when I do it via Postman on my local.

Not sure what I am missing here.
Can someone please guide what should be the config chosen in FilePicker for PDF and how the headers and body should be configured?

Thanks

Hey there!
Just to clarify, is it that you’re not getting any response at all or the response you got is not what you’re expecting? In any case, can you share with us a screenshot of the response you’re getting?

The response received are different from Appsmith and Postman.
From Appsmith, the response looks truncated.

Check the attached screenshots.

one from appsmith

@Olawale Hi, did you get a chance to look at it? Can you please help?

Hi, @hitz02. Apologies for the late response.
Could you please share what the response looks like on Postman?


Here it is -

auto calculated headers -

If you’re using the cloud version @hitz02, could you invite support@appsmith.com as Developer to your workspace and share the link to your app with us so we can debug it?
If you don’t feel comfortable sharing the link on this post, you can send it as a mail to support@appsmith.com with the URL of this post as well.

@Olawale done. Please check my email.

Can you share the link to your app with us so we can debug it? If you don’t feel comfortable sharing the link on this post, you can send it as a mail to support@appsmith.com with the URL of this post as well.

Application URL added in the mail. check now.

Hi there!
I took the time to check the app, everything seems to be working fine. I tried uploading a demo CSV and I got the information back In a non-truncated manner.
Can I ask what type of data you uploaded when you got the data back truncated?

@Olawale thanks for checking the app.
Can you try uploading a PDF and check?
My use case is to parse resumes which are PDF/docx/doc/text.

Alright. Let me give it a try with a PDF.
I hope it won’t affect anything on your database?

Nope, I just changed the default behavior to NOT store in database.
you can try.

thanks a lot!

Alright.
Please give me some time to take a look at it.

Hi @Olawale, did you give it a try? Any update?

Hi there!
I also encountered some errors while trying to run the application (i.e uploading PDF). I have already reported this to our engineers. I or someone from the team will reach out to you once we have any helpful information.
Thank you for your patience.

Hello, I have introduced some changes to your application. I have created a JavaScript object that formats the response of your API so that it can be displayed correctly in the table.

Your widget container now displays the information correctly.

Could you please send me the PDF file you are trying to load?

Also, could you please let me know the format in which you expect it to be read in Appsmith?