All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Can Low Variables overwrite files on upload?

joshleemail 1 Oct 2013 17:11 question, complete

I noticed files with the same name get uploaded with a number increment instead of just overwriting the file on the server. Is there a way to allow overwriting instead of creating a new file on the server every file update?

Replies

  1. Low 2 Oct 2013 07:34

    Not without a hack, at the moment. In the latest LV, open up /types/low_select_files/vt.low_select_files.php and look up line #354. That reads:

    'upload_path' => $folder['server_path'],


    Add a line above it, so it reads this:

    'overwrite' => TRUE, 
    'upload_path' => $folder['server_path'],