nextcloud-server/apps/files
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 +07:00
..
ajax Fix uploading when free space is unlimited 2016-03-07 12:41:36 +07:00
appinfo Inject the Mount Manager 2016-04-04 09:10:43 +07:00
command Introduce isReadyForUser and verify in file transfer ownership - fixes #23786 2016-04-20 20:25:22 +07:00
controller Return remote shares in oc:share-types Webdav property 2016-03-24 17:22:09 +07:00
css sidebar click modification 2016-04-07 05:07:15 +07:00
img compress icons in navigation, move to monochrome again 2015-08-28 13:30:20 +07:00
js Disable pastezone for jquery.fileupload 2016-04-26 14:37:40 +07:00
l10n Backport translations to stable9 2016-03-22 13:10:33 +07:00
lib Run cleanup of expired DB file locks to background job 2016-03-04 20:13:05 +07:00
service Display share status info in favorite list 2016-03-18 11:36:43 +07:00
templates Make more action icons themable + style fixes 2016-02-25 23:01:07 +07:00
tests Display share status info in favorite list 2016-03-18 11:36:43 +07:00
admin.php Happy new year! 2016-01-12 15:02:18 +07:00
download.php Happy new year! 2016-01-12 15:02:18 +07:00
list.php Happy new year! 2016-01-12 15:02:18 +07:00
simplelist.php Happy new year! 2016-01-12 15:02:18 +07:00