finally after hours and hours, got upload working.  the length isn't given to us from the metadata, so will still need to fix that later