SmartZoos / Toolset

Gaming platform for SmartZoos project
MIT License
0 stars 1 forks source link

File selection should be restricted beforehand #199

Closed kaimikael closed 6 years ago

kaimikael commented 6 years ago

The Choose file… dialogue for adding images to activity items allows selecting video and audio files, even though they aren’t accepted. The input tag should be supplied with an accept attribute to prevent the user from attempting to upload invalid files.

pjotrsavitski commented 6 years ago

I suppose we could just use the “accept” attribute on the file input. That should allow jpg/jpeg and png. This should keep other files being gray.

On 7 Feb 2018, at 18:24, Kai-Mikael Jää-Aro notifications@github.com wrote:

The Choose file… dialogue for adding images to activity items allows selecting video and audio files, even though they aren’t accepted. The input tag should be supplied with an accept attribute to prevent the user from attempting to upload invalid files.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

kaimikael commented 6 years ago

Yes, exactly.