Skip to main content
1 of 2
GlennJ
  • 575
  • 3
  • 12

Allow uploading of asset with same name as existing asset

I have an upload form working in my templates (on the frontend), however if I try to upload a file with the same name as an existing asset the file isn't uploaded.

I notice instead a prompt message comes back.

  1. I'm not sure how to deal with this, I presume some AJAX call is required.

  2. I would prefer it if I could send a value which tells Craft to keep both files without prompting.

What would be the best way of handling this?

GlennJ
  • 575
  • 3
  • 12