Allow uploading of asset with same name as existing asset
I haven't tested this but from a brief look into how assets are uploaded you might be able to pass a userResponse value through post, it seems the options you can pass are:

keepBoth, replace, cancel

So I guess you would need to include the field in the form you are using to upload the asset like:

&lt;input type="hidden" name="userResponse" value="keepBoth"&gt;


As I said I haven't tried this before and i'm assuming you're hitting the UploadFile action on the assets controller...