nextcloud/apps/files
Lukas Reschke f8ae1bb36e 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-03-22 20:28:57 +01:00
..
ajax Fix uploading when free space is unlimited 2016-03-07 10:42:36 +01:00
appinfo Display share status info in favorite list 2016-03-17 15:35:21 +01:00
command Some typo corrections in occ command output 2016-03-16 16:14:25 -07:00
controller Display share status info in favorite list 2016-03-17 15:35:21 +01:00
css apps/files: Fix typos in comments (found and fixed by codespell) 2016-03-09 15:14:05 +01:00
img compress icons in navigation, move to monochrome again 2015-08-28 13:30:20 +02:00
js Disable pastezone for jquery.fileupload 2016-03-22 20:28:57 +01:00
l10n [tx-robot] updated from transifex 2016-03-21 01:55:40 -04:00
lib Run cleanup of expired DB file locks to background job 2016-03-04 15:52:23 +01:00
service Display share status info in favorite list 2016-03-17 15:35:21 +01:00
templates Make more action icons themable + style fixes 2016-02-25 23:01:07 +01:00
tests Display share status info in favorite list 2016-03-17 15:35:21 +01:00
admin.php Happy new year! 2016-01-12 15:02:18 +01:00
download.php Happy new year! 2016-01-12 15:02:18 +01:00
list.php Happy new year! 2016-01-12 15:02:18 +01:00
simplelist.php Happy new year! 2016-01-12 15:02:18 +01:00