Skip to content

LocalUploads — @gj-kit/expo-media

A public interface from @gj-kit/expo-media. The signature below is taken directly from the 0.6.1 release declaration.

import { LocalUploads } from '@gj-kit/expo-media';
interface LocalUploads<TAsset, TCollectionId extends string = string> {
uploadLocalFile(input: LocalUploadInput<TCollectionId>): Promise<UploadResult<TAsset>>;
/**
* 피커 자산 1건 — `PickerFlows`·`DeviceUploads`가 위임한다.
* ⚠ **네이티브 전용이다.** `platform.os === 'web'`이면 `MediaError('platform-unsupported')`
* — 로컬 파일 스트리밍은 웹에 존재하지 않는다. 웹 피커 자산의 정본 경로는 §5.7.4다.
*/
uploadPickedAsset(asset: PickedAsset, options?: {
readonly collectionId?: TCollectionId | null | undefined;
} | undefined): Promise<UploadResult<TAsset>>;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: .
  • Source: GitHub