commit 541461af0c3a6fd4bd2b4bcfe35f083a4670d36a
parent 7fef7c71d0c8397d6de6a1a6822a6a85c86fdfd5
Author: Felicitus <felicitus@felicitus.org>
Date: Tue, 8 Dec 2015 12:59:04 +0100
Overwrite file within the filesystem
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PartKeepr/UploadedFileBundle/Services/UploadedFileService.php b/src/PartKeepr/UploadedFileBundle/Services/UploadedFileService.php
@@ -52,7 +52,7 @@ class UploadedFileService extends ContainerAware
throw new DiskSpaceExhaustedException();
}
- $storage->write($file->getFullFilename(), file_get_contents($filesystemFile->getPathname()));
+ $storage->write($file->getFullFilename(), file_get_contents($filesystemFile->getPathname()), true);
}
public function replaceFromData(UploadedFile $file, $data, $filename)