the icon of a file-fieldtype with set_value_type("url") reverts to default after uploading a file and pressing "update"
Version
- Carbon Fields: 3.3.4
- WordPress: 5.9.3
- PHP: 7.3.21
Expected Behavior
After uploading a file with the file-fieldtype and set_value_type( "url" ) the file-icon should remain
after pressing "update"
Actual Behavior
but instead it returns to its default state

Container definition
Container::make( 'post_meta', 'files' )
->add_fields( array(
Field::make( 'file', 'crb_files', 'files' )
->set_visible_in_rest_api( true )
->set_width( 10 )
->set_value_type( "url" )
));
Steps to Reproduce the Problem
- make the container definition
- upload the file
- press update
Comments
the data does show up via the REST-api, so it's purely a cosmetical bug in the wordpress-editor.
The bug does not occur when set_value_type is not set.
at the moment it only seems to happen with pdf-files, although a bit earlier i had the same bug happening with images too.
Like mine, version 3.3.4, Filed image, file will not return images, the problem is the same as yours. Only Media Gallery is available.
We couldn't reproduce the issue on the newest version (v3.5.0). Please update WordPress core and Carbon Fields to the newest version and let us know if the issues still exist.