Skip to content

Can't upload file with multipart/form-data in Deno Deploy #567

@jcs224

Description

@jcs224

This app works fine with the Deno CLI, but not Deno Deploy:

https://dash.deno.com/playground/jcs224-zbar-wasm-oak

The multipart/form-data file upload doesn't work because it's trying to run Deno.makeTempDir and Deploy doesn't have the ability to write files.

The failing line is 27, const data = await body.value.read().

Is there a way to get the multipart file data without writing a temp dir? I was able to do this with the web-native FormData without Oak:

https://developer.mozilla.org/en-US/docs/Web/API/FormData/get

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions