Changed file input to directory. Works only in Webkit browsers now.