use remoteStorage

This commit is contained in:
SrGooglo 2023-04-12 23:13:55 +00:00
parent 2920dabd4b
commit 2d3a0d659b

View File

@ -1,5 +1,11 @@
export default class FilesModel {
static async uploadFile(file) {
static async uploadFile(file, ...args) {
const result = await app.cores.remoteStorage.uploadFile(file, ...args)
return result
}
static async deprecated_uploadFile(file) {
console.log("uploadFile", file)
// get the file from the payload