constant FILE_EXISTS_REPLACE

  1. 7.x drupal/includes/file.inc FILE_EXISTS_REPLACE
  2. 5.x drupal/includes/file.inc FILE_EXISTS_REPLACE
  3. 6.x drupal/includes/file.inc FILE_EXISTS_REPLACE
  4. 8.x drupal/core/includes/file.inc FILE_EXISTS_REPLACE

Flag for dealing with existing files: Replace the existing file.

File

drupal/includes/file.inc, line 56
API for handling file uploads and server file management.

Code

define('FILE_EXISTS_REPLACE', 1)

Related topics