Unable to upload files from WebUI

Support intro


Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2):
Operating system and version (eg, Ubuntu 17.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:
Cannot upload files using WebUI in nextcloud.
I am using a shared hosting provided by Hostgator and suddenly, file upload is not working using web ui. The desktop app uploads properly.
I tried installing owncloud using softaculous and the same problem occurs in a fresh installation as well.

Is this the first time you’ve seen this error? (Y/N):
Yes
Steps to replicate it:

  1. Login
  2. Upload a file by clicking + or drag and drop

The output of your Nextcloud log in Admin > Logging:

No Log for this process but the last error in the log is
Fatal	webdav	Sabre\DAV\Exception\BadRequest: Document is empty on line 1, column 1

    [internal function] Sabre\DAV\CorePlugin->httpPropFind(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
    /home/agarwegg/public_html/files/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
    /home/agarwegg/public_html/files/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method PROPFIND', Array)
    /home/agarwegg/public_html/files/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
    /home/agarwegg/public_html/files/apps/dav/lib/Server.php - line 287: Sabre\DAV\Server->exec()
    /home/agarwegg/public_html/files/apps/dav/appinfo/v2/remote.php - line 35: OCA\DAV\Server->exec()
    /home/agarwegg/public_html/files/remote.php - line 164: require_once('/home/agarwegg/...')
    {main}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'xx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'www.com',
  ),
  'datadirectory' => '/xx/nextclouddata',
  'overwrite.cli.url' => 'xx/files',
  'dbtype' => 'mysql',
  'version' => '13.0.5.2',
  'dbname' => 'xx',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'axx21',
  'dbpassword' => 'xx',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'app.mail.accounts.default' => 
  array (
    'email' => '%USERID%@axx.com',
    'imapHost' => 'XX.com',
    'imapPort' => 993,
    'imapSslMode' => 'ssl',
    'smtpHost' => 'XXcom',
    'smtpPort' => 465,
    'smtpSslMode' => 'ssl',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'XX',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'XX',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpname' => 'XX',
  'mail_smtppassword' => 'XX',
);

The output of your Apache/nginx/system log in /var/log/____:

Cannot find it