import FileController from '@hackthevalley/sdk/app/controllers/FileController.js'
FileController
Method Summary
Public Methods | ||
public |
getBase64FromFile(file: File): Promise<string> Takes in a File object from browser, convert it to base64. |
|
public |
getFileTypeFromBase64(base64: string): string Get file type from a base64 string converted by getBase64FromFile. |