web icon indicating copy to clipboard operation
web copied to clipboard

Space image not uploaded if larger than 7MB

Open jesmrec opened this issue 1 month ago • 7 comments

Describe the bug

Edit image does not work if the image is larger that 7MB

Steps to reproduce

  1. Select Edit image on a space with manager permission
  2. Choose an image larger that 7MB

Expected behavior

Two options:

  • Image updated correctly
  • Error message: image is larger than allowed or 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

jesmrec avatar Nov 05 '25 13:11 jesmrec

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>

jvillafanez avatar Nov 12 '25 10:11 jvillafanez

@LukasHirt maybe you can improve the behavior in the web client. I'd expect an error somewhere because the thumbnail isn't shown.

jvillafanez avatar Nov 12 '25 10:11 jvillafanez

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.

jesmrec avatar Nov 12 '25 11:11 jesmrec

Yes, we should definitely throw an error in the UI in such case. I will check it out.

LukasHirt avatar Nov 12 '25 13:11 LukasHirt

Transferring this into Web repo as oCIS returns correct response and Web needs to handle it.

LukasHirt avatar Nov 12 '25 13:11 LukasHirt

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.

jesmrec avatar Nov 13 '25 07:11 jesmrec

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.

LukasHirt avatar Nov 13 '25 08:11 LukasHirt