(fileName)
| 56 | } |
| 57 | |
| 58 | export function extractFileExtension(fileName) { |
| 59 | const lastindexDot = fileName.lastIndexOf('.'); |
| 60 | if (lastindexDot <= 0) { // no extension |
| 61 | return ''; |
| 62 | } else { |
| 63 | return fileName.substring(lastindexDot + 1, fileName.length).toLowerCase().trim(); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | export class FileUpload { |
| 68 | constructor() { |
no outgoing calls
no test coverage detected