Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

checking before overwriting images


Guest

Recommended Posts

I've noticed that when uploading images for my store osc doesn't check if an image of the same name already exists. Is it poss to get it to check first, and ask before overwriting?

Link to comment
Share on other sites

Dan, it's quite do-able to get the code to check before over-writing images. You'd want to use the php file_exists() function to check for the file, and then prompt you to confirm you want to over-write.

 

Integrating this into the form-handling would be the hardest part, but still a fairly routine change, I'd say.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...