-
-
Notifications
You must be signed in to change notification settings - Fork 531
Add check that the file exists when uploading it #15264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the system setting that's introduced in PR #15285.
@JoshuaLuckers I forgot about PR completely, added a setting, check :) |
$settings['upload_file_exists']->fromArray(array ( | ||
'key' => 'upload_file_exists', | ||
'value' => '1', | ||
'xtype' => 'combo-boolean', | ||
'namespace' => 'core', | ||
'area' => 'file', | ||
'editedon' => null, | ||
), '', true, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$settings['upload_file_exists']->fromArray(array ( | |
'key' => 'upload_file_exists', | |
'value' => '1', | |
'xtype' => 'combo-boolean', | |
'namespace' => 'core', | |
'area' => 'file', | |
'editedon' => null, | |
), '', true, true); | |
$settings['upload_file_exists']->fromArray([ | |
'key' => 'upload_file_exists', | |
'value' => true, | |
'xtype' => 'combo-boolean', | |
'namespace' => 'core', | |
'area' => 'file', | |
'editedon' => null, | |
], '', true, true); |
I believe it's better to have the markup be part of the lexicon. |
I believe the requested change was made.
What does it do?
Same as in #15232 but for the 3.x branch.
Added a check for the existence of a file when uploading it.
In the current version, if the file names match, then the file will be overwritten.
Related issue(s)/PR(s)
#15232
#8371
#14641