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

Problems with adding files over 15MB with progress handler #293

Closed
salamantos opened this issue Apr 22, 2018 · 2 comments
Closed

Problems with adding files over 15MB with progress handler #293

salamantos opened this issue Apr 22, 2018 · 2 comments

Comments

@salamantos
Copy link

I tried to create progress bar to my file uploading. I used this code:
let progress_func_video = function (len) { console.log("video progress:", len); }; ipfs.files.add(files_video, {progress: progress_func_video}, (err, result) => {...}

When I upload 1MB files, it's ok, but on 30MB filse I got this error in Chrome:
POST https://site.com:81/api/v0/add?progress=true&stream-channels=true net::ERR_INCOMPLETE_CHUNKED_ENCODING
Uncaught (in promise) TypeError: network error at new exports.IncomingMessage (response.js?99b5:67) at module.exports.ClientRequest._connect (request.js?af32:259) at eval (request.js?af32:157)

How to fix it?

@lidel
Copy link
Member

lidel commented Apr 22, 2018

Hi, this repository is used for Research and Idea Discussions, so you may want to close this and re-open in https://github.com/ipfs/js-ipfs-api (which I assume you are using).
FYSA it may be related to known issues with uploading big files via js-ipfs-api in Chrome, eg. ipfs-inactive/js-ipfs-http-client#654

@salamantos
Copy link
Author

Yes, my bad..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants