PDF Uploading as an input

I am trying to have an input where if a person types, “PDF” it will open their downloads folder and let them open a pdf. How do I do that?

Hello @imfinancialtechnolog!

I don’t believe there’s a way to open a pre-specified subdirectory that works across all browsers and for all users of all operating systems.

That said, this link to the docs regarding Anvil’s FileLoader component should help get you started to accomplishing what you want to do.

Note: You can specify ‘.pdf,.PDF’ in the file_types property so that your users only see files with those extensions, but they’ll still need to navigate to the directory that contains the file(s) to upload.

1 Like