[SOLVED] Images are not displayed

Hello

If I insert pictures directly into a scheme, these are uploaded, with a few pictures they are also displayed normally. However, if there are many pictures in it (in my example, just under 60 pieces), they will no longer be displayed after saving.

The pictures are there, but not visible.

Greetings Andreas

Environment

  • [X] Self hosted with IIS

Version: 4.2.0 Beta

Can you check in mongodb if they are saved correctly and are they part of the content object that is returned from the API?

So it seems that the data in the scheme are also stored within the Mongodb. Enclosed is the string that is in the database.

{“data”:{“medias”:{“iv”:[“0f3c5733-41b5-490a-ac17-e3630ea3abd0”,“a142850f-d173-4d5d-b96d-199ab0460585”,“7957a1d5-9266-4e54-a03c-297d08cf0999”,“8445a592-afe2-46cb-960b-b97d1a5fc3d0”,“f493a2a2-5206-476b-a404-02724a4385ab”,“235fa923-e9fc-44ed-8099-6982ea611c7b”,“db1b78db-3cb5-443f-a20b-9fb29b94e49b”,“8eb1881b-6510-4840-88e7-11d63162840a”,“573283b6-8d0e-47e2-b6de-65c7c19553de”,“f47cd0e0-671a-44d5-9309-6adf8d26c010”,“e323676d-95a6-4325-9583-93912c6d06a6”,“a39e1c4d-e8e7-4c5c-a994-a798ab1c01da”,“3c9536a5-9a27-465e-aa43-eb2720b11a69”,“e26b7b12-6cdc-46d7-bc4c-06df090f9941”,“97f46b09-5214-48ac-a0e2-22d1f928b547”,“10d3dd15-df45-472c-ba76-051e56073445”,“72f50ab7-9bc2-4ff6-b079-88f42b967355”,“b5206c41-eb52-4c97-9b1d-88bd18588faf”,“8aaed648-357f-4976-8824-ca9351c4b2c0”,“2e39b419-69c6-4b2c-a216-ffa90d1c6360”,“4efb7f90-85df-404d-a123-46c9abca5260”,“3a82945d-a9be-4ec0-98b1-5090b5b6fe38”,“f1d3fa34-b01b-48ec-ae1b-835ce9f6e5c8”,“789dc535-119c-4920-b868-b44d77077386”,“5ed6a1f3-9176-4278-883e-7ca59b251dd8”,“68c50932-4b02-4014-abe3-5f079a048f08”,“d3690349-fdf5-4ab5-b4aa-fb90d3800f17”,“96b715e5-c8c9-4cca-a4a1-5cc3477f3c42”,“15a1f391-aecd-4848-8c43-9b1986556671”,“f1938823-f350-441f-86e6-7f7f522a37a8”,“102d0067-4252-47f9-8af3-9beeaddb7da3”,“3fe30fb5-a3d4-44c2-85d4-78c40d145676”,“4e180e3c-1bdd-4077-abd3-5a630b1aea6e”,“e13f4b58-0de5-4dcf-aba9-8135eca8c337”,“77232f12-92a9-4825-b248-6498a0b354e3”,“2ae91f07-d4e0-434b-8754-b88184290298”,“c11f5aca-a81c-4bc1-b7f6-5acb6af9ea84”,“8c8f2b78-a5bd-43c3-aa22-ebab548e0987”,“c6a2b388-8f1e-456f-8f23-d1beed87655b”,“e4e4f0e6-662e-4539-a502-1760792e1728”,“534c9219-321c-4e4f-b7a2-eda6e455383a”,“df610bc4-8c7d-401c-8226-c3e14dc2913a”,“f68811f4-5fd7-4d94-b089-c0b17ca17beb”,“678acc24-ed85-4354-8646-dcfaafaf1ae9”,“dcb07773-75e8-490a-bb6e-e24453ed5f3c”,“e2249058-0cc1-46eb-a449-7a1bebca592a”,“bdbf10c6-d5b6-4f34-980b-189c887f965f”,“7e5b7375-ef6b-4f27-a0ab-683dad7043ef”,“d2d07788-87e4-4a4f-8d98-dea9f457521c”,“2d0390b7-6ac0-423c-8417-f5c38adcd4ca”,“a4c89e51-4f74-4597-a469-bd23cafb204e”,“b600774f-f2fa-4e36-a54c-01ca9d3d34e2”,“28c100d6-fa93-4ec3-a348-abf146812d91”,“5bf9a0ca-ecb6-4ee4-87e4-25e109d7f07a”,“3a096925-a9ad-41c9-a19a-02d17fb7617b”,“72a53794-949e-413a-a898-bf2714cb2b79”,“2dfa17ea-f0d5-48a1-b21b-9fbfd214a9c4”,“2cb9a972-088f-449e-ac8a-464f603c03c8”]},“imageCount”:{“iv”:58}},“contentId”:“6b4d158f-2d4e-4b03-9a59-3587ba2ebaff”,“schemaId”:“724c1d6c-a9d9-4df6-ad8f-a623adb88dc0,medias”,“appId”:“cf1bf0d3-cba6-4a2f-a554-67c34bfefe44,test-global”,“actor”:“subject:5e43b42e9cc7186eb0c1608e”}

1 Like

Can you also check the API for me? Just in the network tab.

there is a 404 error. but only if there are many pictures.

I see, I guess the problem is that the URL gets too long. I have to introduce a POST request for that. Which server do you use?

Also the same problem like that: [NOT_REPRODUCIBLE] Content items disappearing when too many are linked

I have found this: https://github.com/aspnet/KestrelHttpServer/issues/1065

I’ve now seen that the IIS is responsible for it.

Fix:
web.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\Squidex.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
      <security>
        <requestFiltering>
          <requestLimits maxQueryString="8192" />
        </requestFiltering>
      </security>
    </system.webServer>
  </location>
</configuration>
1 Like

But I am working on a fix to fallback to POST requests for long queries.

1 Like

I have merged in my POST fallback.