After updating to NC16.0.2, I can not upload via Web UI by D&D

Hi,

This is a bug, which was identified directly after the release of 16.0.2. Luckily there is a fix available already as well.

Bug report:

Fix:

  • change directory to your Nextcloud installation directory (for example /var/www/nextcloud)
  • edit the file apps/files/js/filelist.js and change return value in line 1808 (on NC16.0.2) as follows

from

                getDirectoryPermissions: function() {
                        return parseInt(this.$el.find('#permissions').val(), 10);
                },

to

                getDirectoryPermissions: function() {
                        return this && this.dirInfo && this.dirInfo.permissions ? this.dirInfo.permissions : parseInt(this.$el.find('#permissions').val(), 10);
                },

Source: https://github.com/nextcloud/server/pull/16282/files


The fix for NC15 stable is the same, but in line 1695: https://github.com/nextcloud/server/pull/16283

This issue should be fixed in the next release.

2 Likes