I'm building an Ionic 2 app, which uploads a profile image to Baqend:
import { db } from 'baqend';
const img = new db.File({ folder: '/profiles', data: imageData, type: 'base64', mimeType: 'image/jpeg' });
img.upload();
I can't find any type for a file reference. Whats the best way to save it?