Unable to upload via HTTPS

  • Nextcloud Server version (e.g., 29.x.x):
    • Lastest
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx reverse proxy manager - v2.14.0
  • PHP version (e.g, 8.3):
    • 8.3.29
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • When uploading under HTTPS
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Proxmox VM instaslled via snap on ubuntu
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Hello All - I am able to upload large or small files when on the ip via http - When on hhtps the upload hangs and I get this error. I am running nextcloud via snap but I don’t believe that is the issue.Any assistance is highly appreceiated.

I am am suspecting its the proxy server. domainname—> nginx reverse proxy —>nextcloud

Error no app in context BadRequestExpected filesize of 520288 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 57344 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

Error
no app in context
BadRequest
Expected filesize of 104857600 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 57344 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

Hey @MysterB, welcome to the Nextcloud community and thanks for supporting Nextcloud snap :handshake:

Sorry to hear you are having issues with your Nextcloud snap installation. If you’ve come this far, you’re on the right track! There is a good chance someone in the community has had a similar issue and knows how to resolve it.

:100: agree! more likely reverse proxy or client configuration.

compare your NPM config with the configuration shown in the wiki:

also mention the Nextcloud-Client version you’re using and the OS its installed on