Simulate drag and drop of file to upload in Protractor
<p>I want to test file upload, by dragging file to the drop zone in the page, however I can't find a way to simulate file dragging from the desktop folder.
The only way I managed to found is the following one -</p>

<pre><code>desktop.browser.actions().dragAndDrop(elem,target).mouseUp().perform();(Protractor)
</code></pre>

<p>However as far as I can understand, it drags only css element.</p>