Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Does anyone know how to add a file to IPFS directly from a solidity contract?
This should not be possible without any external service.
No. And why would you want to? Seems like it could be a huge security hole. Just call your contract from an application, wait for the receipt, and then upload the information to IPFS.
Required, but never shown