File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Yii Framework 2 mongodb extension Change Log
4
4
2.1.10 under development
5
5
------------------------
6
6
7
- - no changes in this release.
7
+ - Bug # 308 : Fix ` yii\mongodb\file\Upload::addFile() ` error when uploading file with readonly permissions (sparchatus)
8
8
9
9
10
10
2.1.9 November 19, 2019
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ public function addFile($filename)
178
178
$ this ->filename = basename ($ filename );
179
179
}
180
180
181
- $ stream = fopen ($ filename , 'r+ ' );
181
+ $ stream = fopen ($ filename , 'r ' );
182
182
if ($ stream === false ) {
183
183
throw new InvalidParamException ("Unable to read file ' {$ filename }' " );
184
184
}
@@ -277,4 +277,4 @@ private function insertFile()
277
277
$ this ->collection ->insert ($ fileDocument );
278
278
return $ fileDocument ;
279
279
}
280
- }
280
+ }
You can’t perform that action at this time.
0 commit comments