News for hackers. Stuff that matters.
Re:IPFS Pics by Breefield on Friday October 23, 2015 @01:44AM (#10437002)
[edit] derp I am dumb, was not familiar with https://ipfs.io/ this explains my questions
Re:IPFS Pics by shaunol on Friday October 23, 2015 @01:50AM (#10437019)
It looks like the PHP code is the front facing web code which then makes curl calls into the server.js code as you suspected. Presumably server.js is run using node which listens on port 8090 and exposes a few ipfs methods which just calls into the local ipfs binary on the system using exec calls.

IPFS is an interesting project and this is a pretty cool usage of it.

Re:IPFS Pics by steckerbrett on Friday October 23, 2015 @01:49AM (#10437011)
It's just POSTing the image to a web server running from something else.

I don't understand why they are doing dumb things like passing everything to a shell when PHP has curl support of its own, and imagemagick.

Re:IPFS Pics by Gigablah on Friday October 23, 2015 @01:55AM (#10437025)
Not to mention that index.php contains only HTML.
Re:IPFS Pics by derefr on Friday October 23, 2015 @01:49AM (#10437017)
To hazard a guess, they're probably copying the file into a directory which is mounted as an IPFS FUSE server.