feat(android app): add 'choose file' button to auto upload media to catbox in the background

more free and open web hosting services can be added later
This commit is contained in:
Tom (plebeius.eth)
2024-11-02 18:42:52 +01:00
parent 3f4f0229ba
commit f40c2c2f88
11 changed files with 258 additions and 10 deletions
+9
View File
@@ -0,0 +1,9 @@
import { registerPlugin } from '@capacitor/core';
export interface FileUploaderPlugin {
pickAndUploadMedia(): Promise<{ url: string; fileName: string }>;
}
const FileUploader = registerPlugin<FileUploaderPlugin>('FileUploader');
export default FileUploader;