Unable to upload file in file. Also unable to open a png nextcloud image

Nextcloud version 28.0.4
Operating system and version Ubuntu
Apache or nginx version _(eg, Apache 2.4.8.3

The issue you are facing:

Im unable to upload a file.
Uploading error 405
It never let me also open the nextcloud png image as it frozen loading and all link in the page is no more working. I need reload the page change page.

Even create a report give an error that cannot be stored, the log.

Is this the first time you’ve seen this error? (Y/N): yes

Steps to replicate it:

  1. I go on files
  2. I try to upload a file
  3. I get the 405 status error

The output of your Nextcloud log in Admin > Logging:

What is where is this?

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

XX

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

XX

XX


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

In the server I see the following log:
13)Permission denied: AH00529: data/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that ‘/data/’ is executable

This results as Apache error.

I try to open nextcloud.png in files and I see all frozen loading loop. The server report the following error:

405 PROPFIND …/ Nextcloud.png

This issue seems is happening with just some file extensions like png, jpg. If I upload .ico or a zip file no issue.

Any idea on how can be resolved?