Space image not uploaded if larger than 7MB
Describe the bug
Edit image does not work if the image is larger that 7MB
Steps to reproduce
- Select
Edit imageon a space withmanagerpermission - Choose an image larger that 7MB
Expected behavior
Two options:
- Image updated correctly
- Error message:
image is larger than allowedor similar, returning a proper error to the clients
Actual behavior
Image not updated, but success message
Setup
ownCloud Infinite Scale Edition Community Version 7.3.0 Web client version 12.1.1
It works for me.
There is a THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE option which might influence the outcome. It's 50MB by default, so I can upload a 8MB files as space image, but if I set the option to 5MB, the image is uploaded but the thumbnail isn't generated.
I get a 403 error with the following response:
<?xml version="1.0" encoding="UTF-8"?>
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns"><s:exception></s:exception><s:message>thumbnails: image is too large</s:message></d:error>
@LukasHirt maybe you can improve the behavior in the web client. I'd expect an error somewhere because the thumbnail isn't shown.
If it helps, these are the steps in a short video:
https://github.com/user-attachments/assets/f262db62-421e-40d0-9e88-4f54b5981cfd
That is a 7.1MB image, by trying a ~6.7MB, everything works fine.
Yes, we should definitely throw an error in the UI in such case. I will check it out.
Transferring this into Web repo as oCIS returns correct response and Web needs to handle it.
Are you sure that's a problem in the web? I can reproduce the same behaviour in Android client. Checking the request flow with mitmproxy, both PUT and PATCH operations are successful (201 and 200) but there is no space image displayed.
Are you sure that's a problem in the web?
I would expect this because of what JP wrote:
I get a 403 error with the following response
But if the response is actually successful, then yes, it wouldn't be only Web.