The php downloader comes from url and is not saved to the local end, but can be downloaded directly under the server.

I have found a code that is file_put_contents

but he downloaded to the specified file

but what I want to implement now is to "click the button" to press the button (based on a string of url) and save it directly under the "browser"

.

how can this be realized?

Web address end format may have jpg, jpeg, png

Mar.18,2021

The

a tag has an attribute of download

<a href="images/tupian.jpg" download="tupian"></a>

right-click--> Save the picture as.


does not have this function. Because the photo website is not yours, you can't control the HTTP header in it.

Menu