Davis Thibault In PHP 7, they removed or tweaked a feature of PHP 5.6 that makes Flarum work. So now Flarum doesn't function fully on PHP 7. Although, the Flarum devs are working hard to get Flarum ready for PHP 7.
Thibault Thanks everyone but I have removed Flarum from my server and I'll wait for a version without using SSH.
jordanjay29 Thibault I'm glad we found the problem, once Flarum is at a stable version you should have no trouble with it.
Thibault @jordanjay29 @luceos I've finally found the solution. I have added a php.ini file on every folder (lol) with upload_tmp_dir = "/home/username/public_html/tmp/" and I have created a folder called "/tmp" with chmod 0777 and everything is working fine by now. Anyway, thanks for your help guys!
vabhik Could anyone please tell what type of body we need to set while uploading an avatar using api ?