function onPressOk() {
			if (oItem.getUploadState() === UploadState.Uploading) {
				if (this.fireBeforeUploadTermination({item: oItem})) {
					this._handleUploadTermination(oItem);
				}
			} else if (oItem.getUploadState() === UploadState.Complete) {
				this.removeItem(oItem);
			}

			oDialog.close();
			this.invalidate();
		}
Edited item cancelation handling.

@param {object} oEvent Event instance.
@param {sap.m.upload.UploadSetItem} oItem Item whose editing is to be canceled.
@private