diff options
Diffstat (limited to 'fbin')
-rw-r--r-- | fbin/templates/upload.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fbin/templates/upload.html b/fbin/templates/upload.html index 9fe1571..00f4de8 100644 --- a/fbin/templates/upload.html +++ b/fbin/templates/upload.html @@ -56,6 +56,12 @@ $(document).ready(function() { $(':file')[0].files = event.originalEvent.dataTransfer.files; } }); + $(document).on('paste', function(event) { + var files = (event.clipboardData || event.originalEvent.clipboardData).files; + if (files.length === 1) { + $(':file')[0].files = files; + } + }); }); </script> {% endblock %} |