Bug fix for uploading from iphones