mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-12 12:04:16 +00:00
use remoteStorage
This commit is contained in:
parent
2920dabd4b
commit
2d3a0d659b
@ -1,5 +1,11 @@
|
|||||||
export default class FilesModel {
|
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)
|
console.log("uploadFile", file)
|
||||||
|
|
||||||
// get the file from the payload
|
// get the file from the payload
|
||||||
|
Loading…
x
Reference in New Issue
Block a user