added IOError when uploading data