Skip to content

Upload from Chrome does not contain file's content #10266

Closed
@cod3monk

Description

@cod3monk

Description

Uploading a file from Chrome (Version 76.0.3809.46) on a Mac (10.14.5) produced an invalid file. Further inspection revealed, that the file contained function stream() { [native code] } instead of its original content. Uploading through Firefox on the same system and the same file works fine.

Having a look at the development tools and network timeline, the browser already replaced the raw data with the above mentioned string.

The shown file size, however, matches the original file's size, but not of the file downloadable.

Steps to reproduce

  • Enter chat
  • Drag file onto chat / or use paperclip icon and select file
  • Hit upload on the subsequent dialog
  • Download the file
  • Compare

Describe how what happens differs from what you expected.

Version information

  • Platform: Browser
  • Browser: Chrome version 76.0.3809.46
  • OS: macOS 10.14.5
  • URL: self-hosted riot-web version 1.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions