fixed error in upload() in file info consolidation
added example for file uploads