Opened 10 years ago
Closed 10 years ago
#12264 closed New Feature (fixed)
Files in dataTransfer
Reported by: | Piotr Jasiun | Owned by: | Piotr Jasiun |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.5.0 Beta |
Component: | General | Version: | |
Keywords: | Cc: |
Description (last modified by )
Part of: #11437.
dataTransfer should contains files.
Change History (9)
comment:1 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Status: | new → confirmed |
comment:2 Changed 10 years ago by
Owner: | set to Piotr Jasiun |
---|---|
Status: | confirmed → assigned |
comment:3 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Summary: | File API → Files in dataTransfer |
comment:4 Changed 10 years ago by
Milestone: | → CKEditor 4.5.0 |
---|
comment:5 Changed 10 years ago by
Status: | assigned → review |
---|
comment:6 Changed 10 years ago by
There is one case we could handle in this ticket: paste file on Chrome. We can get such file using:
evt.clipboardData.items[0].getAsFile()
But it looks more like a bug:
files
is empty- item type is
plain/text
instead of file mime type (what makes it hard to recognize), - there is always only 1 item (even if I paste multiple files).
So I believe we should skip this case and wait until Chrome will put that file into files
array.
comment:9 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | review → closed |
Basic implementation, so nothing to check for now (except JSLint error ;)). We'll need to update documentation afterwards.
Merged to major with git:87be663.
Changes in t/12264.