summaryrefslogtreecommitdiff
path: root/fbin/templates
diff options
context:
space:
mode:
Diffstat (limited to 'fbin/templates')
-rw-r--r--fbin/templates/upload.html6
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 %}