linkar-uploader
Version:
```ts import { uploadFile } from "linkar-uploader";
11 lines (10 loc) • 523 B
TypeScript
import { UploadedFileInterface } from "./interfaces/upload-file.interface";
/**
* Uploads a file to a specified URL using a Linkar-style API key.
*
* @param filePath - Absolute or relative path to the file
* @param apiKey - API key to authenticate the upload
* @param uploadUrl - Full upload URL (e.g. https://storage.linkar.cc/api/v1/storage/single)
* @returns Response data from the server
*/
export declare function uploadFile(filePath: string, apiKey: string, uploadUrl: string): Promise<UploadedFileInterface>;