question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a File Picker Widget

See original GitHub issue

Problem

Sometimes it’s nice to be able to specify a file on the command line.

Solution

A file picker!

MVP

The file picker can be called as follows:

with st.file_input() as input:
  if input == None:
    st.warning('No file selected.')
  else:
    file_contents = input.read()

Possible additions

Down the line, we could imagine keyword args for filetypes and folder selection.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:65
  • Comments:42 (9 by maintainers)

github_iconTop GitHub Comments

40reactions
jiericecommented, Feb 28, 2020

Very nice feature! Is it possible to retrieve the path of the file, instead of the file itself?

Would be very useful to get the file path.

29reactions
ajinkya933commented, Oct 17, 2019

any update on this ? It is the only thing stopping me from productionising my model using streamlit. Any help is greatly appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

file_picker | Flutter Package - Pub.dev
A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support....
Read more >
Filepicker - Appsmith
Filepicker widget is used to allow users to upload files from their local machines to any cloud storage via API. Cloudinary and Amazon...
Read more >
Filepicker | ToolJet - Documentation
Filepicker widget allows the user to drag and drop files or upload files by browsing the filesystem and selecting one or more files...
Read more >
Open files and folders with a picker - UWP - Microsoft Learn
This makes your app the calling app. The file picker interacts with the system and/or other apps to let the user navigate and...
Read more >
Custom Widget with File Picker ( for API )
FlutterFlow lover!! Im having a problem with File Upload which is the most important part of my app.. I m ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found