Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

Ensure users can just upload image files — usability #66

Description

@nfreear

You can use the accept attribute on <input type=file> to limit the type of files that can be uploaded:

<input
  type="file"
  accept=".jpg,image/*"
  onchange="angular.element(this).scope().fileChosen(this.files[0])"
/>

Useful!

N.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions