How to make a variable change the address of a local file via Drag&Drop?

There is a web page, which you can throw the file.
Let's say it's a media player, it throws the video and he loses it (i.e. at the location of the file on a PC or other device)
March 19th 20 at 09:26
1 answer
March 19th 20 at 09:28
Local address you won't get anything because of security reasons. There is the usual file input to do, the user drags a file on him, he ugrozhaya, get the BLOB and then have produced it the necessary manipulations.
There is the following code - (), throwing the file in D&D, the address of the location of the file replaces the XXX.mp4 - leland94 commented on March 19th 20 at 09:31
@leland94, if you're using input download any file, you will see there the object, there will be all kinds of information, including the file extension and the path to it in the user's file system(and the names and number of variables with paths will depend on the browser and its version), so sho if you need to display where it was obtained, it is possible. But I think in this file there is nothing you can through the browser because the browser is a sandbox which has no access to the file system, you can have access to only what the user sent in the sandbox. - Cooper commented on March 19th 20 at 09:34

Find more questions by tags JavaScript