1. 8.2.x core/includes/file.inc FILE_STATUS_PERMANENT
  2. 8.0.x core/includes/file.inc FILE_STATUS_PERMANENT
  3. 8.1.x core/includes/file.inc FILE_STATUS_PERMANENT
  4. 8.3.x core/includes/file.inc FILE_STATUS_PERMANENT
  5. 6.x includes/file.inc FILE_STATUS_PERMANENT
  6. 7.x includes/file.inc FILE_STATUS_PERMANENT

Indicates that the file is permanent and should not be deleted.

Temporary files older than DRUPAL_MAXIMUM_TEMP_FILE_AGE will be removed during cron runs, but permanent files will not be removed during the file garbage collection process.

Related topics

22 uses of FILE_STATUS_PERMANENT
FileFieldTestCase::assertFileIsPermanent in modules/file/tests/file.test
Asserts that a file's status is set to permanent in the database.
FileFieldWidgetTestCase::doTestTemporaryFileRemovalExploit in modules/file/tests/file.test
Helper for testing exploiting the temporary file removal using fid.
FileSaveDataTest::testExistingRename in modules/simpletest/tests/file.test
Test file_save_data() when renaming around an existing file.
FileSaveDataTest::testExistingReplace in modules/simpletest/tests/file.test
Test file_save_data() when replacing an existing file.
FileSaveDataTest::testWithFilename in modules/simpletest/tests/file.test
Test the file_save_data() function when a filename is provided.

... See full list

File

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

Code

define('FILE_STATUS_PERMANENT', 1)