[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.