mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update File.php
Adding warning, took me a couple hours to figure this out... The file does not get moved because of this line: https://github.com/silverstripe/silverstripe-framework/blob/3.1/filesystem/File.php#L515 Maybe add to the method doc, telling people to set ParentId and Name instead if they want to change the location of a file (if that's the correct method).
This commit is contained in:
parent
8ab0fd879d
commit
3e5ac7cdcc
@ -732,7 +732,7 @@ class File extends DataObject {
|
||||
}
|
||||
|
||||
/**
|
||||
* Does not change the filesystem itself, please use {@link write()} for this.
|
||||
* Caution: this does not change the location of the file on the filesystem.
|
||||
*/
|
||||
public function setFilename($val) {
|
||||
$this->setField('Filename', $val);
|
||||
|
Loading…
Reference in New Issue
Block a user