Button to open Windows Explorer and write selected file path into a text field

I’d like to suggest (or ask about) a possible solution within NocoBase:

I’d like to have a button in a record view that opens the Windows file explorer to select a local file, and then automatically writes the file path into a text field.

The key point:
:file_folder: The file should not be uploaded, only the path (e.g., a local or network drive path) should be written as plain text into the field.

Example use case:

  • Click button “Select File (Insert Path)”
  • A native Windows file explorer dialog opens
  • After selection, the path Z:\Projects\Client123\Documentation\Report.pdf is automatically inserted into a text field

Question:
Is there already a way to achieve this using a custom action button, client-side script, or plugin?
If not, I’d love to propose it as a feature request for a future release.

:framed_picture: Example UI idea:
Select a local file path and automatically insert it into a text field (without file upload).

(attach the generated image here)



Thanks a lot for your time and all your great work on NocoBase!**

Best regards,Stefan

Hi, this scenario is not currently supported. We recommend using the “js block” in the develop branch to write JavaScript to implement this requirement.

Thank you for the answer. Could you explain me more about the “js block” ?

Sorry, the document is still in preparation. I will comment and provide feedback after the document is released.

Thanks for the comment. When will it be released? Can the develop branch be used without hesitation? Will the future version be backward compatible with the develop branch?