You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
path.isAbsolute() is not OS independent. If you are on Linux, and pass C:\path\file, it returns false. So then we resolve, and return something like
/home/user/dir/C:\path\file
Puppeteer version
14.3
Node.js version
16.13
npm version
8.5.0
What operating system are you seeing the problem on?
Linux, Windows
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
This is a pretty niche use case and there are probably people relying on the path.resolve(), but it would be nice to be able to somehow turn this check off.
codr1
changed the title
[Bug]: When puppeteering a remote browser running a different OS, page.uploadFiles does not work
[Bug]: When puppeteering a remote browser running on a different OS, page.uploadFiles does not work
Jun 10, 2022
Bug description
Steps to reproduce the problem:
The issue are the follwing lines in page.uploadFile
*const files = filePaths.map((filePath) => {
if (path.isAbsolute(filePath)) {
return filePath;
}
else {
return path.resolve(filePath);
}
})
path.isAbsolute() is not OS independent. If you are on Linux, and pass C:\path\file, it returns false. So then we resolve, and return something like
/home/user/dir/C:\path\file
Puppeteer version
14.3
Node.js version
16.13
npm version
8.5.0
What operating system are you seeing the problem on?
Linux, Windows
Relevant log output
No response
The text was updated successfully, but these errors were encountered: