Update FileSharing.php

Fixes #1 : Credits to @shabang