move fileextensions and ContentType in model