-1

i use imgur.com for image upload,

but now i want use fixed image link, ex: www.example.com/ABC.png

After change image, but i want this www.example.com/ABC.png dont change.

Image link don't change when i change image.

What host or solution can i do it?

Thanks

2
  • 1
    the first two lines make perfect sense, the rest does not. Are you editing the HTML or using a tool to change the link? Is the problem caching of an old image? Do you need a web service that redirects the user from a specific URI to a dynamic image source?
    – rob
    Jul 7, 2020 at 16:25
  • @rob thanks.i want web service to upload and replace image. Thanks
    – latexforti
    Jul 8, 2020 at 5:43

1 Answer 1

1

I think we still need more information about your server and requirements, but the most straight forward way of updating a file on a web server is FTP.

Point the FTP server to folder that is used by the web server to serve the image. Most hosting providers will offer some sort of FTP solution.

On your client machine rename your local file to be the same name as the server file name then use an FTP program (can be command line or GUI) to upload and overwrite the server copy.

The one thing to watch out for this solution is caching. If a browser has already viewed(downloaded) your image then visiting it again after it has changed may show them the old copy from the browsers cache. There are lots of threads on how to "cache bust" and "cache busters" to avoid this issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.