mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
3d9e12baf4
NOTE: This change should be reviewed to make sure it does not cause any side effects. Example use case: An admin porting user images from an old website. The script would put the images in the assets folder, and then insert them into the database using Image::write() and data from the old database. public function insertImage($data) { $image = new Image(); $image->ParentID = $data->parentId; $image->Title = $data->title; $image->FileName = $data->filename; $image->OwnerID = $data->ownerId; $image->write(); // In the current version, this results in all images // being owned by Member::currentUser() instead of // the expected $data->ownerId; } |
||
---|---|---|
.. | ||
File.php | ||
FileFinder.php | ||
FileNameFilter.php | ||
Filesystem.php | ||
Folder.php | ||
GD.php | ||
ImagickBackend.php | ||
Upload.php |