Home » Php » How to display images in files folder from dreamfactory using php

How to display images in files folder from dreamfactory using php

Posted by: admin October 26, 2017 Leave a comment

Questions:

I have uploaded images files in folder of Dreamfactory

<img src="https://motodev.spotya.online/api/v2/files/Posts/posts_1508937621_Tulips.jpg">

Error Displayed,

{“error”:{“code”:400,”context”:null,”message”:”No session token (JWT)
or API Key detected in request..”}

Answers:

It looks like your files endpoint in dreamfactory is secured. You need to provide API key or JWT token to access the files inside this directory. Another way is to add guest access to your files endpoint, as described here.