packages/nativescript-sdk/src/nativescript/files/upload.ts
Function uploadFile
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function uploadFile(url: string, file: File, metadata: any, options: any = {}): Promise<any> {
return new Promise((resolve, reject) => {
const session = bghttp.session('file-upload');
const request = {
url,