I’m creating a frontend where image galleries are a key component.
Several issues have arisen in recent days.
I use UBERSPACE for my webspace.
I tried to upload a large number of images through the panel.
Approx. 200 images
File size up to 20 MB per image
I’ve correctly configured the server to allow uploads of such large files.
Nevertheless, the upload repeatedly breaks off after about 20 images and displays an error in a popup window:
Filename.jpg ERROR uploading image <<<
→
Questions:
Is the Kirby Panel not designed for such large images in such large quantities?
Could this be a bug in the panel?
Upload via SFTP works perfectly of course!
Since I couldn’t upload the images in their full size, I reduced the size of the images on my local computer. The file size is now up to 1MB! The upload now works without a hitch.
BUT
In my frontend, the images are displayed in a list. There are 2 images side by side. As soon as an image comes into the user’s field of vision, it loads. So, if you quickly scroll through the list, my frontend makes about 200 requests to the server for icons.
This brings the server to a halt.
The panel displays the following error in a popup:
The JSON response could not be parsed
Gateway Timeout
The gateway did not receive a timely response from the upstream server or application. <<<
When the server is in this state, which lasts for several minutes, it no longer responds. Neither the panel opens, nor can my app make requests. Such behavior is of course unacceptable for a commercial application.
Of course, I could now limit the server request, so request one icon after another. This would work as long as there is only one app or website user. However, if multiple users access a new gallery simultaneously, it forces the server temporarily to its knees.
One solution would be for me to enter somewhere in the panel which image sizes I need and then have them automatically generated before the gallery is published. BUT this would have to be a global setting. My app requires about 200 images 3 times a week. Manually entering the size for each image 600 times would be too time-consuming for my clients.
→
Questions:
Is the server’s hangup due to my webspace, is Uberspace not suitable for an application of this type?
If so, which webspace can you recommend?
My images are located in the panel in the files section. 20 images are displayed per page. I use the Cards / Tiny view. Dividing them into groups of 20 images makes sorting an image gallery of 200 images quite complicated.
→
Question:
Is there a setting I haven’t found that displays all the images so you can easily drag and drop the images?