Hy guys,
I have a file field set up, and i would like to overwrite the file i am uploading each time.
I will always upload a file with the same name, and i need the url for this file to always be the same.
Is there a option to check new file name vs old file name on upload and if they are the same then delete the old file?
Thank you!
No, there is not. This is not generally how WP uploads files.
Try this: https://wordpress.org/plugins/enable-media-replace/