keystatic icon indicating copy to clipboard operation
keystatic copied to clipboard

file field does not display selected filename

Open stefanprobst opened this issue 1 year ago • 3 comments

when using a fields.file() it would be useful to display the name of the file when one has been selected. currently the widget looks like this:

Screenshot_20240516_150737

repro: https://github.com/stefanprobst/issue-keystatic-file-field

stefanprobst avatar May 16 '24 13:05 stefanprobst

i think the reason is that the file (and image) fields check useIsInDocumentEditor() which is always false (see here)

stefanprobst avatar Jul 31 '24 07:07 stefanprobst

@emmatown is the IsInEditorContext context a leftover from the old document field which can be removed or does it have to be added to the new richtext field as well?

stefanprobst avatar Jul 31 '24 09:07 stefanprobst

Any update on this?

m4rrc0 avatar May 07 '25 12:05 m4rrc0