Homec4science

Support paste file uploads

Authored by vrana <jakubv@fb.com> on Feb 24 2012, 00:47.

Description

Support paste file uploads

Summary:
This is so freaking cool that I will try to implement it also on Facebook.
Idea is from
http://strd6.com/2011/09/html5-javascript-pasting-image-data-in-chrome/.
I don't know how to properly detect support but lying about it is not a big
deal.

Test Plan:
Go to revision comment textarea.
Paste some text data - works as usual.
Paste some image data in Chrome - file is uploaded and a link to it is inserted.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1681

Details

Committed
vrana <jakubv@fb.com>Feb 24 2012, 01:36
Pushed
aubortJan 31 2017, 17:16
Parents
rPH48ab6aa465ff: Display //no name// for files without name to make the link clickable
Branches
Unknown
Tags
Unknown

Event Timeline

vrana <jakubv@fb.com> committed rPH97144c093215: Support paste file uploads (authored by vrana <jakubv@fb.com>).Feb 24 2012, 01:36