constant FILE_EXISTS_REPLACE in Drupal 7
Same name and namespace in other branches
- 8 core/includes/file.inc \FILE_EXISTS_REPLACE
 - 4 includes/file.inc \FILE_EXISTS_REPLACE
 - 5 includes/file.inc \FILE_EXISTS_REPLACE
 - 6 includes/file.inc \FILE_EXISTS_REPLACE
 
Flag for dealing with existing files: Replace the existing file.
Related topics
22 uses of FILE_EXISTS_REPLACE
- drupal_build_css_cache in includes/
common.inc  - Aggregates and optimizes CSS files into a cache file in the files directory.
 - drupal_build_js_cache in includes/
common.inc  - Aggregates JavaScript files into a cache file in the files directory.
 - FileCopyTest::testExistingReplace in modules/
simpletest/ tests/ file.test  - Test replacement when copying over a file that already exists.
 - FileDirectoryTest::testFileDestination in modules/
simpletest/ tests/ file.test  - This will test the filepath for a destination based on passed flags and whether or not the file exists.
 - FileMoveTest::testExistingReplace in modules/
simpletest/ tests/ file.test  - Test replacement when moving onto a file that already exists.
 
File
- includes/
file.inc, line 56  - API for handling file uploads and server file management.
 
Code
define('FILE_EXISTS_REPLACE', 1);