Fixed temporary file name generation

On this context "this.objectName" is undefined. The filename was being generated with "undefined" string on it.