Strange error, Symfony upload File can be UploadFile instance, OR File instance. May be this problem come from vich bundle, not sure
Adding / at the end of path, if there s none