Update File.php

Make uploads protocol agnostic