fixed invocoation of upload