Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Protractor fails to upload files which are greater than 200 MB due to limitations of FileDetector #4305

Closed
sri85 opened this issue Jun 1, 2017 · 1 comment

Comments

@sri85
Copy link

sri85 commented Jun 1, 2017

  • Node Version: v6.9.2

  • Protractor Version: 5.1.1

  • Angular Version: ``

  • Browser(s): Chrome

  • Operating System and Version MAC OSX El Capitan 10.11.6

  • Steps to reproduce the bug

  1. Try uploading a file which is more than 250 MB
    Minimal TC
browser.setFileDetector(new remote.FileDetector());
$(element).sendKeys(<some big file>).then(function(){
            console.log("File uploaded");
        }).catch(function(err){
            console.log("Failed to select a file",err)
        });

Expected Result:
File should be uploaded successfully.

Actual Result:

"toString()" failed
    at Buffer.toString (buffer.js:495:11)

I think I might be hitting SeleniumHQ/selenium-google-code-issue-archive#4442

Are there any workarounds ? Or a possible fix ?

@sri85 sri85 changed the title Protractor fails to upload files which are greater than 200 MB Protractor fails to upload files which are greater than 200 MB due to limitations of FileDetector Jun 2, 2017
@NickTomlin
Copy link
Contributor

NickTomlin commented Jun 10, 2017

Sorry for the late reply here. Protractor doesn't do any specific handling of files so this is definitely something better raised on the selenium project. Please open an issue there if this is something you need.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants