put length to gridfs