Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picker – 414 Request-URI Too Large #478

Open
leofeyer opened this issue May 8, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@leofeyer
Copy link
Member

commented May 8, 2019

Affected version(s)

Contao 4.4+

Description

If an image gallery contains enough images (300 in my test), the picker URL gets too long and the server throws a "414 Request-URI Too Large" error. This is due to the UUIDs being added to the URL as GET parameter:

Request URL: /contao/picker?context=file&extras%5BfieldType%5D=checkbox&extras%5Bfiles%5D=1&extras%5Bextensions%5D=jpg%2Cjpeg%2Cgif%2Cpng%2Ctif%2Ctiff%2Cbmp%2Csvg%2Csvgz&value=9436bdad-6a6c-11e8-a4b0-5254007b7359,d2700bbb-6e36-11e7-a71f-5254007b7359,d1834430-79e1-11e3-9a26-926f73f26522,1070f4da-880b-11e3-83e3-393046d040cd,f3a65618-1ca7-11e8-a71f-5254007b7359,d180249e-79e1-11e3-9a26-926f73f26522,4b4d4cbb-6536-11e6-a003-5254000a882d,d180b77e-79e1-11e3-9a26-926f73f26522,fc9f4ad2-af6b-11e7-a71f-5254007b7359,d1817948-79e1-11e3-9a26-926f73f26522,4ca96bea-098b-11e8-a71f-5254007b7359,6ec8afc8-1472-11e7-8f85-5254007b7359,d180654e-79e1-11e3-9a26-926f73f26522,d180fa9a-79e1-11e3-9a26-926f73f26522,d181b8d6-79e1-11e3-9a26-926f73f26522,d1817916-79e1-11e3-9a26-926f73f26522,…

As @aschempp suggested, we might be able to work around this by using cross window messaging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.