Upload error when using "File drop (upload only)" link

Nextcloud version: 20.0.0 - 20.0.0.9
Operating system: Linux 3.16.0-6-amd64 #1 SMP Debian 3.16.57-2 (2018-07-14) x86_64
Webserver: Apache (fpm-fcgi)
Database: mysql 10.0.38
PHP version: 7.2.32

Hi !
I’m having issue when trying to upload in a folder, as a guest, using a “File drop (upload only)” link
I get “Could not upload” error top right of the screen.
observation : file is actually uploaded in non-groupfolders folders - but I get the error on upload

Steps to replicate it:
1- create folder
2- share link > create a “file drop (upload only)”
3- create new private tab in browser, paste the URL
4- Drop a file (or browse) -> Error top right : “Could not upload “…””

The output of your Nextcloud log in Admin > Logging:

Error PHP Error: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domains.fr/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/vhosts/domains.fr/apps/dav/lib/Connector/Sabre/File.php#691 2020-10-17T13:31:33+0200
Error PHP Error: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domains.fr/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/vhosts/domains.fr/apps/dav/lib/Connector/Sabre/File.php#691 2020-10-17T13:31:33+0200
Error PHP Error: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/domains.fr/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/vhosts/domains.fr/apps/dav/lib/Connector/Sabre/File.php#691 2020-10-17T13:31:33+0200
Fatal webdav Error: Call to a member function getUsersFavoritingObject() on null 2020-10-17T13:31:33+0200

The output of your Apache/nginx/system log in /var/log/____:
2020-10-17 13:42:16 Error 93.6.105.129 500 PUT /public.php/webdav/file.png HTTP/1.0

I’ve seen in topics that disabling Activity app does solve this problem, but I need it for email notifications and activity feed.
Note : - Administration > Sharing > Allow public uploads is checked!

Thanks a lot for your help!

1 Like

Can confirm. Same here using latest Docker build.

Workaround:

deactivate activity-app

Confirmed! After deactivating activity-app uploads worked again. I just clicked ‘disable’ and file drop uploads worked again. For those who don’t know what ‘activity-app’ is here is a screenshot :wink:

I have ubuntu 20 with Apache2 btw…

yeah but I really need the notification system to work, it comes with the Activity app !

Need to re-open this discussion. I have the exact same issue with the same log output. I have disabled Activity app but it does not make any difference at all. What else can I try?

Running Nextcloud version 21.0.1. The problem was reported to me first today. I updated a few days prior

Please open a new thread and post all informationen e.g. version, configuration and logs.