fix upload bug for firefox
add the compatible of firefox and ie