nextcloud/apps
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
..
comments Backport translations to stable9 2016-03-22 13:10:33 +01:00
dav Personal calendar should be generated even if the birthday calendar already exists - fixes #24082 2016-04-22 13:03:31 +02:00
encryption Merge pull request #24131 from owncloud/dont-transfer-files-to-not-ready-user-stable9 2016-04-22 10:33:18 +02:00
federatedfilesharing Backport translations to stable9 2016-03-22 13:10:33 +01:00
federation Backport translations to stable9 2016-03-22 13:10:33 +01:00
files Disable pastezone for jquery.fileupload 2016-04-26 14:37:40 +02:00
files_external add test 2016-04-25 17:43:52 +02:00
files_sharing Add unit tests for shared size propagation with encryption 2016-04-21 14:24:49 +02:00
files_trashbin Chunk the users correctly in the trashbin and versions background job 2016-04-20 10:39:14 +02:00
files_versions Add missing use statement 2016-04-25 13:34:20 +02:00
provisioning_api Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
systemtags Backport translations to stable9 2016-03-22 13:10:33 +01:00
testing Add new apps 2016-03-01 17:52:32 +01:00
updatenotification Backport translations to stable9 2016-03-22 13:10:33 +01:00
user_ldap Merge pull request #24242 from owncloud/stable9-backport-24052 2016-04-26 14:34:57 +02:00