File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ private function uploadValidator($file)
248248
249249 $ new_file_name = $ this ->getNewName ($ file );
250250
251- if ($ this ->setName ($ new_file_name )->exists ()) {
251+ if ($ this ->setName ($ new_file_name )->exists () && ! config ( ' lfm.over_write_on_duplicate ' ) ) {
252252 return $ this ->error ('file-exist ' );
253253 }
254254
Original file line number Diff line number Diff line change 2525 // Use relative paths (without domain)
2626 'relative_paths ' => false ,
2727
28+ // behavior on files with identical name
29+ // setting it to true cause old file replace with new one
30+ // setting it to false show `error-file-exist` error and stop upload
31+ 'over_write_on_duplicate ' => false ,
32+
2833 /*
2934 |--------------------------------------------------------------------------
3035 | Multi-User Mode
You can’t perform that action at this time.
0 commit comments