kandanapp / kandan

Kandan is an Open Source Alternative to HipChat
GNU Affero General Public License v3.0
2.72k stars 408 forks source link

Allow mobile devices and other non-drag-and-drop-enabled devices to upload files #383

Closed JangoSteve closed 9 years ago

JangoSteve commented 9 years ago

This one has been bugging me for a while. It's impossible for touch devices such as phones and tablets to upload files to Kandan, even though it's responsive and otherwise perfectly suited for mobile devices.

I added a check to see if the current device is capable of dragging and dropping, and if it's not, it instead displays a nicely styled file upload button, which will automatically upload the file via ajax, same as the current drag-and-drop file upload.

screen shot 2014-09-14 at 4 26 43 am

scouttyg commented 9 years ago

This all seems fine, I like the autodetection of drag/drop vs file upload button, but it looks like the other merge of pull requests has caused merge conflicts, resolve these and I can pull this in.

JangoSteve commented 9 years ago

Should be good to go now.