-
-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Labels
type:bugBugBug
Milestone
Description
When uploading a file it is opened read/write. This causes a permission error when the web server has read only access to the file.
yii2-mongodb/src/file/Upload.php
Lines 175 to 186 in 837c14c
| public function addFile($filename) | |
| { | |
| if ($this->filename === null) { | |
| $this->filename = basename($filename); | |
| } | |
| $stream = fopen($filename, 'r+'); | |
| if ($stream === false) { | |
| throw new InvalidParamException("Unable to read file '{$filename}'"); | |
| } | |
| return $this->addStream($stream); | |
| } |
MageloPST
Metadata
Metadata
Assignees
Labels
type:bugBugBug