IpfsUploadBatchOptions
type IpfsUploadBatchOptions = { alwaysUpload?: boolean; metadata?: Record<string, string>; rewriteFileNames?: { fileStartNumber: number }; uploadWithGatewayUrl?: boolean; uploadWithoutDirectory?: boolean;};
Optionally, always reupload even if the file already exists
type alwaysUpload = boolean;
Optional metadata to associate with this upload
type metadata = Record<string, string>;
If specified, will rewrite file names to numbers for use on-chain. Useful to use with NFT contracts that map token IDs to files.
type rewriteFileNames = { fileStartNumber: number };
If specified, any URLs with schemes will be replaced with resolved URLs before upload
type uploadWithGatewayUrl = boolean;
If specified, will upload a single file without wrapping it in a directory
type uploadWithoutDirectory = boolean;