You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
I implemented browser application using ipfs-core in Angular. It is very simple application. Its functionalities are add file by MFS and get from its node and download file.
What happened
I cannot add complete file when its size is over 250kB.
↓Origin file.
↓Added file.
First, I thought that my implementation was just wrong in Angular. So I modified example of browser-webpack and added functionality of "add" and download.
As a result, I was able to reproduce the problem.
Next, I check on Node.js too. But I was not able to reproduce the problem.On Node.js, I can use the MFS API or the regular API to add the complete file.
Points are these.
- This bug was reproduce when using MFS API (ipfs.files.write) not regular API (ipfs.add).
- Only on browser.
What you expected to happen
I think only one block can be added to IPFS node on browser when using MFS API. But I don't know why.
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
"Priority" labels will show how urgent this is for the team.
"Status" labels will show if this is ready to be worked on, blocked, or in progress.
"Need" labels will indicate if additional input or analysis is required.
ocknamo
changed the title
Cannot add large file completely by MFS API on browser.
Files larger than 250kb cannot be added by MFS API on browser node.
Mar 3, 2021
Turn the `Blob`/`File` object into a `ReadableStream` then turn that
into an `AsyncIterator<Uint8Array>` the same as the other input types.
Fixes#3601Fixes#3576
Turn the `Blob`/`File` object into a `ReadableStream` then turn that into an `AsyncIterator<Uint8Array>` the same as the other input types.
Fixes#3601Fixes#3576
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kind/bugA bug in existing code (including security flaws)status/readyReady to be worked
Type: Bug
Severity: High
Description:
I implemented browser application using ipfs-core in Angular. It is very simple application. Its functionalities are add file by MFS and get from its node and download file.
I cannot add complete file when its size is over 250kB.
↓Origin file.
↓Added file.
First, I thought that my implementation was just wrong in Angular. So I modified example of browser-webpack and added functionality of "add" and download.
As a result, I was able to reproduce the problem.
Next, I check on Node.js too. But I was not able to reproduce the problem.On Node.js, I can use the MFS API or the regular API to add the complete file.
Points are these.
I think only one block can be added to IPFS node on browser when using MFS API. But I don't know why.
Steps to reproduce the error:
Modify example of browser-webpack in this repository.
Modified file is "app.js" only.
code is below.
And, running the example.
Open localhost:3000/ on browser.
Upload File and download.
Lacked cat image is downloaded.
Thanks for any help!
The text was updated successfully, but these errors were encountered: