fixing iphone bug in upload