In MUMPS how can I get the file extension is there a class I can use? Class(%File).GetFilename that will return the Full Message name but i would just like the extension?
Set tNameIn=##class(%File).GetFilename(pRequest.OriginalFilename)
In MUMPS how can I get the file extension is there a class I can use? Class(%File).GetFilename that will return the Full Message name but i would just like the extension?
Set tNameIn=##class(%File).GetFilename(pRequest.OriginalFilename)
You can use $piece for this.
Should return the latest piece delimited my symbol dot
And filename without extension will be