Files
2026-07-13 12:30:28 +08:00

21 lines
513 B
TypeScript

import uploadToIpfsSplit from './uploadToIpfsSplit';
import type { UploadAction } from './uploadToIpfsSplit';
/**
* @deprecated Legacy upload entry kept for compatibility.
* Use `uploadToIpfsSplit` directly for all new code.
*/
export default async function uploadToIpfs(
filePath: string,
options?: {
action?: UploadAction;
importAsCar?: boolean;
projectName?: string;
},
): Promise<{
contentHash: string;
shortUrl?: string;
} | null> {
return uploadToIpfsSplit(filePath, options);
}