File field, overwrite if exist

Support MB Builder File field, overwrite if existResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #45757
    EliodataEliodata
    Participant

    Hi,
    I'm using a file filed from the metabox builder.
    The file is uploaded to a custom folder, works well.
    I would like to enable the uploaded file to overwrite existing file if already exist in the destination folder.
    Can you help please?
    Regards

    #45776
    PeterPeter
    Moderator

    Hello,

    There isn't an option to overwrite an existing file if it already exists, WordPress itself also doesn't support this feature. If you are familiar with coding, please take a look at this snippet as a reference
    https://gist.github.com/robbennet/7305119

    #45784
    EliodataEliodata
    Participant

    Hi,
    Thank you! I finally created my own metabox:

    https://codeshare.io/4YjY78

    best regards

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.