added upload functionality (untested) need ipad to test