I want to read and give an output of file content which is stored in files, to API response.
Is there any way to get file content in a js variable and send it as a response?
You have to download it from the Backendless server using the API.
It’s a basic HTTP GET request. Then, you may show the content to the user.
I need to insert that content in the database too, I mean I need to do some operation on that content then insert it in DB and give the response in the API
Please, try to use HTTP block for this purpose.
I have success with printing content of
.txt files into devtools console.
File URL for test you could get from Files tab(link icon near needed file).
Thanks for your reply but I need this functionality for JS Coding Not in Codeless.
Works well for me. Could you test it yourself?