nextcloud/settings
Lukas Reschke a70d6f6a62
Disable pastezone for jquery.fileupload
jquery.fileupload offers the [`pastezone`](https://github.com/blueimp/jQuery-File-Upload/wiki/Options#pastezone) functionality. This functionality is enabled by default and if somebody copy-pastes something into Chrome it will automatically trigger an upload of the content to any configured jquery.fileupload element embedded in the JS.

This implementation triggers some problems:

1. The pastezone is defined globally by default (🙈). So if there are multiple fileupload's on a page (such as in the personal settings) then stuff is going to be uploaded to all embedded uploads.
2. Our server code is not able to parse the data. For example for uploads in the files app we expect a file name which is not specified => Just an error is thrown. You can reproduce this by taking a file into your clipboard and in Chrome then pressing <kbd>CTRL + V</kbd>.
3. When copy-pasting some string from MS Office on the personal page a temporary avatar with said content is created.

Considering that this is anyways was never working at all and causes bugs I've set the `pastezone` to `null`. This mens that upload via copy and paste will be disabled.

Lesson learned: Third-party JS libraries can have some weird details.
2016-04-26 14:37:40 +02:00
..
ajax Update author information 2016-03-01 17:25:15 +01:00
changepassword sign all encrypted blocks and check signature on decrypt 2016-02-09 23:43:25 +01:00
controller Update author information 2016-03-01 17:25:15 +01:00
css fix personal page layout for LDAP users, fix #22272 2016-02-29 14:40:26 +01:00
img remove shadow effects from settings icons, reduce size 2014-07-02 19:50:58 +02:00
js Disable pastezone for jquery.fileupload 2016-04-26 14:37:40 +02:00
l10n [tx-robot] updated from transifex 2016-03-01 01:55:33 -05:00
middleware Throw normal exceptions instead of eating them 2016-02-22 09:41:56 +01:00
templates Add `allow sharing with groups` checkbox to admin page 2016-03-22 12:36:59 +01:00
tests/js Add js tests for empty content page 2015-10-26 16:15:15 +01:00
admin.php Add `allow sharing with groups` checkbox to admin page 2016-03-22 12:36:59 +01:00
application.php Update author information 2016-03-01 17:25:15 +01:00
help.php Happy new year! 2016-01-12 15:02:18 +01:00
languageCodes.php Happy new year! 2016-01-12 15:02:18 +01:00
personal.php Return -3 for unlimited quota 2016-02-29 14:36:20 +01:00
routes.php Update author information 2016-03-01 17:25:15 +01:00
users.php Update author information 2016-03-01 17:25:15 +01:00