Make sure copyInfo is defined (file exists)

Making sure contentLength is defined after the "if (!copyInfo)" statement