Unable to upload any file type but .txt

Steps to reproduce

  1. Log into Website and try and upload files that don’t have the extension .txt

Expected behaviour

All file types should be able to be uploaded via the website.

Actual behaviour

When trying to upload a .psd, .pdf, .png, .jpg, .mp4, .mov, .mp3 I get an error "You don’t have permission to upload or create files here. I have done extensive troubleshooting. .txt and .numbers files upload just fine. If I take the .mov file and rename it with a .txt extension, it uploaded with no issues. It’s only if the file is anything but .txt or so. I can upload a .mov using .txt, then change .txt to .mov using the web interface and it will work fine.

I have no issues using the iOS app to upload any file type.

Server configuration

Operating system:

Web server:
Server by namecheap.com


PHP version:
PHP Version 7.4.14

ownCloud version: (see ownCloud admin page)
ownCloud 10.6.0 (stable)

Updated from an older ownCloud or fresh install:
Fresh install

Where did you install ownCloud from:
Owncloud.com zip via cPanel file manager.

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
paste the results into https://gist.github.com/ and puth the link here.

"No errors have been found."

The content of config/config.php:

    "basic": {
        "license key": "***REMOVED SENSITIVE VALUE***",
        "date": "Tue, 09 Feb 2021 23:25:31 +0000",
        "ownCloud version": "",
        "ownCloud version string": "10.6.0",
        "ownCloud edition": "Community",
        "server OS": "Linux",
        "server OS version": "Linux ***REMOVED SENSITIVE VALUE*** 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24 01:42:00 EDT 2020 x86_64",
        "server SAPI": "litespeed",
        "webserver version": "Apache",
        "hostname": "***REMOVED SENSITIVE VALUE***",
        "logged-in user": "***REMOVED SENSITIVE VALUE***"
    "stats": {
        "users": {
            "Database": {
                "count": 1,
                "seen": 1,
                "logged in (30 days)": 1
        "groups": {
            "OC\\Group\\Database": 1
    "config": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        "datadirectory": "\/home\/***REMOVED SENSITIVE VALUE***\/owncloud_server\/data",
        "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "apps_paths": [
                "path": "\/home\/***REMOVED SENSITIVE VALUE***\/owncloud_server\/apps",
                "url": "\/apps",
                "writable": false
                "path": "\/home\/***REMOVED SENSITIVE VALUE***\/owncloud_server\/apps-external",
                "url": "\/apps-external",
                "writable": true
        "installed": true
    "integritychecker": {
        "passing": true,
        "enabled": true,
        "result": []
    "core": {
        "default_encryption_module": "OC_DEFAULT_MODULE",
        "encryption_enabled": "yes",
        "first_install_version": "",
        "installedat": "1612889855.2337",
        "lastcron": "1612913112",
        "lastupdateResult": "[]",
        "lastupdatedat": "1612912001",
        "public_files": "files_sharing\/public.php",
        "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php"

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one:

Are you using encryption:

Are you using an external user-backend, if yes which one:

Client configuration


Operating system:
Mac OS 11.1


maybe there is something like a security module or setting on your server which causing the problem in ownCloud?

I think your web server logfiles (which have been asked in the template but which have not been provided) could tell you more?

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.