nextcloud/apps/files/js
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
..
admin.js drop allowZIPdownload and maxZIPSize as options 2014-06-02 16:29:03 +02:00
app.js Make files app use Webdav for most operations 2015-11-22 16:05:50 +01:00
breadcrumb.js Parse backslash as directory separator in breadcrumb 2015-01-24 09:56:00 +01:00
detailfileinfoview.js Make file actions work from sidebar 2015-08-12 17:30:20 +02:00
detailsview.js Hide sidebar tab headers conditionally 2015-09-28 14:57:44 +02:00
detailtabview.js Hide sidebar tab headers conditionally 2015-09-28 14:57:44 +02:00
favoritesfilelist.js Fix file list reload callback result 2015-10-27 11:51:54 +01:00
favoritesplugin.js Properly join path sections 2015-11-22 16:05:51 +01:00
file-upload.js Disable pastezone for jquery.fileupload 2016-03-22 20:28:57 +01:00
fileactions.js Fix download spinner to work with CSS styles 2016-03-04 10:48:08 +01:00
fileactionsmenu.js Make file actions use icon CSS classes 2016-02-25 22:49:52 +01:00
fileinfomodel.js recognize eps, psd and illustrator as image 2015-09-15 14:32:07 +02:00
filelist.js apps/files: Fix typos in comments (found and fixed by codespell) 2016-03-09 15:14:05 +01:00
files.js webDAV select bug fixed 2016-01-11 08:41:16 +01:00
filesummary.js Adding a pending indicator to the files summary - fixes #14853 2015-03-27 01:16:29 +01:00
jquery-visibility.js update jquery-visibility in files app 2015-08-17 09:39:21 +02:00
jquery.fileupload.js apps/files: Fix typos in comments (found and fixed by codespell) 2016-03-09 15:14:05 +01:00
jquery.iframe-transport.js architecture too complex 2013-08-21 14:58:28 +02:00
keyboardshortcuts.js Fixed many issues, clean up 2014-05-15 17:51:04 +02:00
mainfileinfodetailview.js apps/files: Fix typos in comments (found and fixed by codespell) 2016-03-09 15:14:05 +01:00
navigation.js Closes "New" dropdown when switching category 2015-05-19 14:47:13 +02:00
newfilemenu.js Remove disabled autocorrect for new file names 2016-03-09 08:38:05 +01:00
search.js use class for no results div instead of id. the elements are not unique. 2015-01-06 14:34:35 +01:00
tagsplugin.js Make more action icons themable + style fixes 2016-02-25 23:01:07 +01:00
upload.js Improved Javascript docs for JSDoc 2014-10-31 13:43:30 +01:00