For security reasons, Javascript is designed in such a way that you cannot do this. However, the man made a workaround that could work and posted it here .
Well, I understand, it only works for files that are publicly available on the server, and I believe that this is not what you want to do. However, if you find a way, it will be such a hack, but it can also be fixed so as not to work at any time.
source share