# IPFS adding file - ipfs.add(file)

**URL:** <https://discuss.ipfs.tech/t/ipfs-adding-file-ipfs-add-file/15177>\
**Category:** js-ipfs\
**Tags:** js-ipfs, files\
**Created:** [September 13, 2022, 6:19am UTC](https://discuss.ipfs.tech/t/ipfs-adding-file-ipfs-add-file/15177 "2022-09-13T06:19:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![danieln](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/danieln/32/6408_2.png) [@danieln](https://discuss.ipfs.tech/u/danieln)\
**Post date:** [September 13, 2022, 10:45am UTC](https://discuss.ipfs.tech/t/ipfs-adding-file-ipfs-add-file/15177/2 "2022-09-13T10:45:35Z")

</div>

Here’s a ready-to-run node.js example that demonstrates how to do `ipfs.add` : [https://github.com/ipfs-examples/js-ipfs-examples/blob/master/examples/ipfs-101](https://github.com/ipfs-examples/js-ipfs-examples/blob/master/examples/ipfs-101)

To get better answers, please see

> [@How to get useful answers to your questions](https://discuss.ipfs.tech/t/how-to-get-useful-answers-to-your-questions/14990):
>
> The IPFS community is growing and so do the number of questions in this forum. To better scale our efforts and save time for those answering questions, please consider following these general guidelines for asking for help: When asking for help with one of the IPFS libraries, include the name of the exact package and version of the package/library. When sharing bits of code, use markdown to wrap code blocks:``` javascript import { create } from 'ipfs-core'; const node = await create…

---

_[View the full topic](https://discuss.ipfs.tech/t/ipfs-adding-file-ipfs-add-file/15177)._
