Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/form-data-parser/demos/node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as http from 'node:http'
import * as os from 'node:os'
import * as path from 'node:path'

import { LocalFileStorage } from '@remix-run/file-storage/local'
import { createFsFileStorage } from '@remix-run/file-storage/fs'
import {
MultipartParseError,
MaxFileSizeExceededError,
Expand All @@ -16,7 +16,8 @@ const PORT = 44100
const oneMb = 1024 * 1024
const maxFileSize = 10 * oneMb

const fileStorage = new LocalFileStorage(await fsp.mkdtemp(path.join(os.tmpdir(), 'uploads-')))
// @ts-ignore
const fileStorage = new createFsFileStorage(await fsp.mkdtemp(path.join(os.tmpdir(), 'uploads-')))

/** @type (file: File) => Promise<string> */
async function getDataUrl(file) {
Expand Down