Added the ability to updload from the file selector