weixiyen / jquery-filedrop

jQuery plugin - drag and drop desktop files and POST to a URL to handle files.
958 stars 285 forks source link

You should add 'Click to upload' as a feature too. #151

Closed SimonFricker closed 10 years ago

SimonFricker commented 10 years ago

You should add 'Click to upload' as a feature too so that way it works well with mobiles.

douglasiacovelli commented 10 years ago

That already exists. It's the fallback.

You must create an input: <input type="file" id="input" />

and set it's id in the options:

dropbox.filedrop({

    fallback_id: 'input',
    ....
});

Then you'll be able to click in the droppable area to select a file.