I'd like to give a client the ability to upload a PDF via the file manager, similar to how the image module works - they click 'Choose Image' and it opens up the file manager.
Currently I have them copying a link in the file manager and pasting it into a text field, which is an awful UX.
I'm looking to create a module with HubL code to accomplish this. It would allow me to drag the module into a website page. When the end user would create/edit the page, they could drag that module onto the page like the image module - which allows a user to select an image from the file manager. The only difference being, I want them to be able to select a document from the file manager, rather than an image.
If this isn't possible, perhaps I can hard code something into the template file with HubL?
@tstrack yes, I agree this would be nice. Typically, what I do in these situations is use a text field and explain in the field's description that they should "copy and paste the URL from the file manager here".