Skip to content

Commit

Permalink
Update the read form for uploaded files.
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanThompson committed Jul 29, 2022
1 parent 0385669 commit 8692298
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/en/01.prologue/02.change-log.md
Expand Up @@ -27,6 +27,10 @@ Features that are deprecated will generally be removed in the next `minor` updat

## Releases

### [2.6.30] - 2022-07-29
#### Changed
- Changed `FileUploader` to use `fopen` instead of `file_get_contents`.

### [2.6.29] - 2022-01-25
#### Changed
- Change `FileModel::url()` to replace spaces with `+` if remote URL.
Expand Down
2 changes: 1 addition & 1 deletion src/File/FileUploader.php
Expand Up @@ -126,7 +126,7 @@ public function upload(UploadedFile $file, FolderInterface $folder)
*/
$entry = $this->manager->put(
$disk->getSlug() . '://' . $folder->getSlug() . '/' . FileSanitizer::clean($file->getClientOriginalName()),
file_get_contents($file->getRealPath())
fopen($file->getRealPath(), 'r+')
);

/**
Expand Down

0 comments on commit 8692298

Please sign in to comment.