Skip to content

Files uploaded using chromedriver get content_type 'application/octet-stream' #2037

@siegcollado

Description

@siegcollado

Meta -

OS: OSX

Selenium Version: 2.51.0

Browser: Google Chrome

Browser Version: 50.0.2661.94 (64-bit)
Chromedriver Version: 2.21.371459

Expected Behavior -

CSV files inputted to the file input field (using send_keys) should have their content_type text/csv

Actual Behavior -

They are of the content type application/octet-stream, so if the field is validated to accept only certain types (text/csv' or 'application/vnd.ms-excel') in my case, the file will fail to upload

Steps to reproduce -

  1. Use selenium to navigate to a page that has an input field of the type file
  2. use send_keys to fill out the input field with the path to the file
  3. Verify the content_type of the uploaded file

I can provide a more detailed example if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions