<p dir="auto">Hi, i have a problem with Electrons app<br>
I want to paste file from local computer into app to upload using vue+ts, my idea is using clipboard using ctrl+v to get file from clipboard . The problem is it worked on browser but on Electrons app side it not work properly. My code is:<br>
<code class="notranslate">onPaste(event:ClipboardEvent) { var items = (event.clipboardData || event.originalEvent.clipboardData).items; console.log(items); } </code><br>
When I console log clipboard data<br>
On browser the items will return lenth = 1<br>
On App the items return length = 0<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8468514/125585759-3b761014-9fab-40db-8e75-e904cdaade2e.png"><img src="https://user-images.githubusercontent.com/8468514/125585759-3b761014-9fab-40db-8e75-e904cdaade2e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This is my first time :)<br>
Does anyone can help me or have an other solution for this.</p>
<p dir="auto">There is currently no mechanism to get/set file pointers from/to clipboard.</p>
<p dir="auto">File pointers: The stuff in clipboard when you copy (<code class="notranslate">ctrl+c</code>) selected files in your OS file explorer.</p>
<p dir="auto">After ~15 min research, there was <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="95421903" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/2244" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/2244/hovercard" href="https://github.com/electron/electron/issues/2244">#2244</a> issue which went a different direction and than got closed. Also there are some projects on hold waiting for this kind of functionality, such as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="173638924" data-permission-text="Title is private" data-url="https://github.com/bortexz/quercus/issues/1" data-hovercard-type="issue" data-hovercard-url="/bortexz/quercus/issues/1/hovercard" href="https://github.com/bortexz/quercus/issues/1">bortexz/quercus#1</a>.</p>