fix bug where uploading didnt work in ios 7.1