Skip to content

[2.1] Error on smf_fileUpload.js #9268

Description

@albprojects

Basic Information

When trying to upload a file, it fails. Console:

Uncaught TypeError: invalid assignment to const 'w' on Firefox.
Uncaught TypeError: Assignment to constant variable. on Chrome.

Changing all instances of w = and h = to var w = and var h = fixes the problem. (I changed myself to const w)

Steps to reproduce

  1. New topic => Attach a file (you don't need to input subject/topic)
  2. It fails.

Expected result

No response

Actual result

No response

Version/Git revision

2.1

Database Engine

All

Database Version

No response

PHP Version

No response

Logs

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions