Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Add ability to upload files #128

Open
@ipeychev

Description

There is some odd issue with Magnet and uploading forms. To explain it, I created two examples: uploading files with and without Magnet. They are practically the same, but the one with Magnet throws "stream ended unexpectedly" error :/

How to reproduce:

  1. Download and unzip this zip file. It contains two examples for uploading files - with and without Magnet.
  2. Do "npm install" in each of the directories and then "npm run dev". Open the browser on "http://localhost:3000" and try to upload a file.

Expected result in the Magnet demo:
File to be uploaded successfully.

Actual result:
A "stream ended unexpectedly" exception is being thrown.

Note: there is sync and async version in Magnet example. Both throw same error. By defaut the demo works with the sync version.

For reference, the original example (without Magnet) I copied from here.

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