# Some images don't load from the Amity server

**URL:** <https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757>\
**Category:** Web\
**Created:** [June 6, 2023, 5:11pm UTC](https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757 "2023-06-06T17:11:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tech](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@Tech](https://forum.social.plus/u/Tech)\
**Post date:** [June 6, 2023, 5:11pm UTC](https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757/1 "2023-06-06T17:11:56Z")

</div>

Hi all,

Since 2 3 days ago, some images don’t load in our communities. Can someone help us?  
I get the link to those images from `FileRepository.getFile()`, but when I want to render them in our React-Native application, I can’t.

Here is a part of the data:

{“fileId”: “1acb856983ba4982bb71e3067d4720cd”, “fileURL”: “[https://api.us.amity.co/api/v3/files/1acb856983ba4982bb71e3067d4720cd/download?size=medium](https://api.us.amity.co/api/v3/files/1acb856983ba4982bb71e3067d4720cd/download?size=medium)”}

{“fileId”: “c6f02484d6644a9d9ba492dac8ff381a”, “fileURL”: “[https://api.us.amity.co/api/v3/files/c6f02484d6644a9d9ba492dac8ff381a/download?size=medium](https://api.us.amity.co/api/v3/files/c6f02484d6644a9d9ba492dac8ff381a/download?size=medium)”}

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [June 7, 2023, 7:31am UTC](https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757/2 "2023-06-07T07:31:01Z")

</div>

Hi @Tech ,

May I please confirm if this is still for platform react native vers. 0.70.6?

Thank you

---

<div class="post-metadata">

**Author:** ![Tech](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@Tech](https://forum.social.plus/u/Tech)\
**Post date:** [June 7, 2023, 4:46pm UTC](https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757/3 "2023-06-07T16:46:03Z")

</div>

Yes, we are using “react-native”: “0.70.6”, but I think it’s not about the react-native version.  
Because I can not even open the Image URLs via the browser on my laptop. Can you see the images of the above links?

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [June 9, 2023, 8:46am UTC](https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757/4 "2023-06-09T08:46:41Z")

</div>

Thank you, we’re investigating for you

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [June 13, 2023, 9:02am UTC](https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757/5 "2023-06-13T09:02:58Z")

</div>

@Tech ,

We’re still unable to reproduce this, may we please confirm :

1. Does it happen every time or happen occasionally?
2. If you upload the same file again, can you open it

Thank you,  
Amity Support

---

<div class="post-metadata">

**Author:** ![Tech](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@Tech](https://forum.social.plus/u/Tech)\
**Post date:** [June 18, 2023, 12:25pm UTC](https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757/6 "2023-06-18T12:25:26Z")

</div>

Hi,

I think the problem is in the upload process.  
I am not sure, but maybe it’s for the HEIC format of images on iPhones and Android devices with a high-quality camera.

Or maybe, the problem is related to the size of an image.

---

<div class="post-metadata">

**Author:** ![Tech](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@Tech](https://forum.social.plus/u/Tech)\
**Post date:** [June 18, 2023, 12:45pm UTC](https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757/7 "2023-06-18T12:45:24Z")

</div>

I think I have found the problem:

**I can upload this image with these properties correctly:**

```json
{
    "fileObject": {
        "_data": {
            "size": 2505426,
            "offset": 0,
            "blobId": "F5897167-ABCD-4AFB-99C3-D2C5C91B422A",
            "type": "image/jpeg",
            "name": "IMG_0003.JPG",
            "__collector": {}
        },
        "uri": "file:///Users/mohammad/Library/Developer/CoreSimulator/Devices/B1DD9235-EB39-4D4E-B368-97DB163C4D03/data/Media/DCIM/100APPLE/IMG_0003.JPG",
        "name": "IMG_0003.JPG",
        "type": "image/JPG"
    },
    "formData": {
        "_parts": [
            [
                "files",
                {
                    "_data": {
                        "size": 2505426,
                        "offset": 0,
                        "blobId": "F5897167-ABCD-4AFB-99C3-D2C5C91B422A",
                        "type": "image/jpeg",
                        "name": "IMG_0003.JPG",
                        "__collector": {}
                    },
                    "uri": "file:///Users/mohammad/Library/Developer/CoreSimulator/Devices/B1DD9235-EB39-4D4E-B368-97DB163C4D03/data/Media/DCIM/100APPLE/IMG_0003.JPG",
                    "name": "IMG_0003.JPG",
                    "type": "image/JPG"
                }
            ]
        ]
    }
}

```

**But I can not download an Image with these properties:**

```json
{
    "fileObject": {
        "_data": {
            "size": 2808983,
            "offset": 0,
            "blobId": "14B1EFDE-8CD3-4E92-A09B-90CFE1FADE1F",
            "type": "image/heic",
            "name": "IMG_0006.HEIC",
            "__collector": {}
        },
        "uri": "file:///Users/mohammad/Library/Developer/CoreSimulator/Devices/B1DD9235-EB39-4D4E-B368-97DB163C4D03/data/Media/DCIM/100APPLE/IMG_0006.HEIC",
        "name": "IMG_0006.HEIC",
        "type": "image/HEIC"
    },
    "formData": {
        "_parts": [
            [
                "files",
                {
                    "_data": {
                        "size": 2808983,
                        "offset": 0,
                        "blobId": "14B1EFDE-8CD3-4E92-A09B-90CFE1FADE1F",
                        "type": "image/heic",
                        "name": "IMG_0006.HEIC",
                        "__collector": {}
                    },
                    "uri": "file:///Users/mohammad/Library/Developer/CoreSimulator/Devices/B1DD9235-EB39-4D4E-B368-97DB163C4D03/data/Media/DCIM/100APPLE/IMG_0006.HEIC",
                    "name": "IMG_0006.HEIC",
                    "type": "image/HEIC"
                }
            ]
        ]
    }
}

```

---

<div class="post-metadata">

**Author:** ![Tech](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@Tech](https://forum.social.plus/u/Tech)\
**Post date:** [June 18, 2023, 12:46pm UTC](https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757/8 "2023-06-18T12:46:12Z")

</div>

The problem seems to be for the format of images.  
Can you support .HEIC format as an Image ?

---

<div class="post-metadata">

**Author:** ![topAmity](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@topAmity](https://forum.social.plus/u/topAmity)\
**Post date:** [June 19, 2023, 11:26am UTC](https://forum.social.plus/t/some-images-dont-load-from-the-amity-server/757/9 "2023-06-19T11:26:47Z")

</div>

We do support HEIC, but we don’t support HEIC with HDR. Therefore, the best solution would be converted the file into normal image before upload
