Fixed upload api is not work for iOS8.