fix upload path for when app is outside the document root