I searched for way to download images by URLs and get there local path.
For example :
If my URL is: https://static.pexels.com/photos/207171/pexels-photo-207171.jpeg
I want to download this image and get its path such as this: file///...../*.jpeg
I searched for way to download images by URLs and get there local path.
For example :
If my URL is: https://static.pexels.com/photos/207171/pexels-photo-207171.jpeg
I want to download this image and get its path such as this: file///...../*.jpeg
Unfortunatley (or luckily) you cannot access the file system from client-side JavaScript as the browser executes it. This is for security reasons.
The only way to access a file from the browser is the HTML file-input <input type="file" />
.
To access the file system with JavaScript, you would need to use NodeJS and its fs-API.