change file public url to make it points its attachment