Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2010 at 14:45 UTC
Updated:
9 Oct 2010 at 18:10 UTC
Re-saving an existing file will not change its status.
I don't know, what this is supposed to mean. Changing the status with file_save() works fine, and the documentation of file_save_upload() even explicitly tells you to do so:
To make the file a permanent file, assign the status and use file_save() to save the changes.
Attached patch would delete this line. Otherwise, could someone explain to me what it should mean? Then we can perhaps make the docu clearer.
| Comment | File | Size | Author |
|---|---|---|---|
| file_save-docu.patch | 643 bytes | drunken monkey |
Comments
Comment #1
dawehnerLooks fine. If file_save is called again, this code will be runned
and the file_managed table has the status key.
Comment #2
dries commentedCommitted to CVS HEAD. Thanks.