Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 3be6a60

Browse files
oleg-andreyevOndraM
authored andcommitted
Fix "path is not canonical" error when uploading file in chrome
1 parent 7d7648c commit 3be6a60

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This project versioning adheres to [Semantic Versioning](http://semver.org/).
1919
### Fixed
2020
- `WebDriverExpectedCondition::presenceOfElementLocated()` works correctly when used within `WebDriverExpectedCondition::not()`.
2121
- Improper behavior of Microsoft Edge when retrieving all cookies via `getCookies()` (it was causing fatal error when there were no cookies).
22+
- Avoid "path is not canonical" error when uploading file to Chromedriver.
2223

2324
## 1.7.1 - 2019-06-13
2425
### Fixed

lib/Remote/LocalFileDetector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class LocalFileDetector implements FileDetector
2525
public function getLocalFile($file)
2626
{
2727
if (is_file($file)) {
28-
return $file;
28+
return realpath($file);
2929
}
3030

3131
return null;

0 commit comments

Comments
 (0)