src/models/upload/S3Upload.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 293-295 (lines=3) @@ | 
                                                            
                                    | 290 |  |      */ | 
                                                            
                                    | 291 |  |     protected function afterSave() | 
                                                            
                                    | 292 |  |     { | 
                                                            
                                    | 293 |  |         if (null !== $this->owner && null !== $this->ownerId && null != $this->ownerAttribute) { | 
                                                            
                                    | 294 |  |             $this->mediafileModel->addOwner($this->ownerId, $this->owner, $this->ownerAttribute); | 
                                                            
                                    | 295 |  |         } | 
                                                            
                                    | 296 |  |  | 
                                                            
                                    | 297 |  |         if (null !== $this->bucketForUpload && null !== $this->uploadDir) { | 
                                                            
                                    | 298 |  |             $this->setS3FileOptions($this->bucketForUpload, $this->uploadDir); | 
                                                                        
                 
                                                            
                    
src/models/upload/LocalUpload.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 179-181 (lines=3) @@ | 
                                                            
                                    | 176 |  |      */ | 
                                                            
                                    | 177 |  |     protected function afterSave() | 
                                                            
                                    | 178 |  |     { | 
                                                            
                                    | 179 |  |         if (null !== $this->owner && null !== $this->ownerId && null != $this->ownerAttribute) { | 
                                                            
                                    | 180 |  |             $this->mediafileModel->addOwner($this->ownerId, $this->owner, $this->ownerAttribute); | 
                                                            
                                    | 181 |  |         } | 
                                                            
                                    | 182 |  |     } | 
                                                            
                                    | 183 |  | } | 
                                                            
                                    | 184 |  |  |