using the following code:
try {
$link = $storage->getFilePreview('profile_photo', $data['profile_photo_id'], 300);
$data['profile_photo_link'] = $link;
} catch (AppwriteException $e) {
echo 'error: ' . $e->getMessage();
}
I am getting characters when I use the $data['profile_photo_link'] in <img> tag. But in web version of the sdk, I get a URL type and I can use this in an image tag by type casting or using the href property. Is the behaviour different in PHP SDK?
self host v1.4.14
Recommended threads
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...