server icon indicating copy to clipboard operation
server copied to clipboard

fix(previews): Allow to parse big files for previews

Open solracsf opened this issue 6 months ago • 3 comments

  • Resolves: https://github.com/nextcloud/server/issues/53469

Checklist

solracsf avatar Jun 14 '25 13:06 solracsf

/backport to stable31

solracsf avatar Jun 14 '25 13:06 solracsf

It feels weird to have this as a general option in config.php.

It should be an option for each storage defined in files_external, no? You may want to enable it for an SMB one on local network and disable it for another s3 storage? Or is that too niche?

come-nc avatar Jun 16 '25 09:06 come-nc

I agree that having this per storage would be better.

Additionally, allowing the admin to set a different cutoff size instead of just disabling the cutoff altogether would be nice.

Note that there is a "mount options" system that would probably make sense to use to configure this.

They can be set with occ files_external:option <mount id> <key> <value> and then checked with $file->getMountPoint()->getOption($key, $default)

icewind1991 avatar Jun 16 '25 13:06 icewind1991

Got it. 👍 In that case, i'm closing here in favour of a "per storage" option.

solracsf avatar Jun 16 '25 15:06 solracsf