Skip to content

No way to upload file larger than ANTIVIRUS_MAX_SCAN_SIZE #1862

@ScharfViktor

Description

@ScharfViktor

Describe the bug

run opencloud with avtivirus scanning https://github.com/opencloud-eu/opencloud-compose/blob/main/.env.example#L218-L231

  • use ANTIVIRUS_MAX_SCAN_SIZE=100MB by default

Steps to reproduce

  1. Upload a file larger than 100 MB

Expected behavior

The file is uploaded without postprocessing. It is visible to the user, and the user can delete it.

Actual behavior

file is stuck in post-processing. It is located on the storage. The user cannot delete it.

Image

Admin cannot also to delete this file or do something to make the file available

admin can see this file in upload session
opencloud storage-users uploads sessions

┌──────────────────────────────────────┬──────────────────────────────────────┬──────────────────────────────┬───────────┬───────────┬──────────────────────────────────────┬──────────────────────────────────────┬──────────────────────┬────────────┬──────────────────────┬─────────────────┐
│                Space                 │              Upload Id               │             Name             │  Offset   │   Size    │              Executant               │                Owner                 │       Expires        │ Processing │      Scan Date       │   Scan Result   │
├──────────────────────────────────────┼──────────────────────────────────────┼──────────────────────────────┼───────────┼───────────┼──────────────────────────────────────┼──────────────────────────────────────┼──────────────────────┼────────────┼──────────────────────┼─────────────────┤
│ 3a7a9019-2f10-434f-a4c5-9e353e7db714 │ 154fc7e9-35da-4ec9-82e9-18d52062f45c │ eicar.com                    │ 69        │ 69        │ 631c9358-5595-1040-8463-473d9216d6a1 │ 631c9358-5595-1040-8463-473d9216d6a1 │ 2025-11-18T11:03:26Z │ false      │ 2025-11-17T11:03:26Z │ Eicar-Signature │
│ 3a7a9019-2f10-434f-a4c5-9e353e7db714 │ ecb38592-0fb8-43ad-aaeb-9b78b5227614 │ opencloud-3.4.0-darwin-arm64 │ 112643762 │ 112643762 │ 631c9358-5595-1040-8463-473d9216d6a1 │ 631c9358-5595-1040-8463-473d9216d6a1 │ 2025-11-18T11:24:52Z │ true       │ 0001-01-01T00:00:00Z │                 │
└──────────────────────────────────────┴──────────────────────────────────────┴──────────────────────────────┴───────────┴───────────┴──────────────────────────────────────┴──────────────────────────────────────┴──────────────────────┴────────────┴──────────────────────┴─────────────────┘

deleting session opencloud storage-users uploads sessions --clean doesn't help unlock or delete file

Setup

opencloud-rolling:4.0.0-rc.1

Details

OC_XXX=somevalue
OC_YYY=somevalue
PROXY_XXX=somevalue

Additional context

Add any other context about the problem here.

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions