Uploading is broken after switching to strict mode

I missed a var spot in the upload handler.