Skip to content

[Feature Branch] File uploader#2130

Merged
karriebear merged 5 commits intodevelopfrom
feature/file-uploader
Oct 8, 2020
Merged

[Feature Branch] File uploader#2130
karriebear merged 5 commits intodevelopfrom
feature/file-uploader

Conversation

@karriebear
Copy link
Copy Markdown
Contributor

Completely redesigned st.file_uploader with the following additional features. The redesigned file uploader also closes out the following bugs. This redesign does not include file persistence on disk or file picker functionalities. (Closes #1202, Closes #831)

Features

Bugs

Demos


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

* Copying over

* Linting

* Missed copy - Hashing + Media support

* Sidebar UX cleanup

* Testing cleanup

* linting + cleanup

* E2E

* linting

* Fix unit tests

* Get snapshots

* Styling cleanup

* File sizing + state updating cleanup

* File sizing + state updating cleanup

* button cleanup + file deletion

* Separate dropzone instructions into a new file

* Separate dropzone instructions into a new file

* Linting

* Small/Error text styled componenting

* a11y uploaded files

* Spacing var

* Whoops + button updates

* Multile file uploader should return [] when empty

* Visual design updates

* linting/cleanup

* Revert rejectFiles change

* Fix tests

* Address PR comments

* Fix test

* addressing quick pr comments

* Whoops

* fix tests

* Readable tests

* setState with function
* Update deprecation

* Update test for deprecation
* Quick visual tweaks

* linting
@karriebear karriebear requested a review from a team October 8, 2020 17:50
* Single file uploader replaces in 1 request

* Update comments
Copy link
Copy Markdown
Contributor

@akrolsmir akrolsmir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not reading this line-by-line, but taking it on faith that each of the previous reviews (including the mega-review) did the right thing.

@karriebear karriebear merged commit f64175d into develop Oct 8, 2020
tconkling added a commit to tconkling/streamlit that referenced this pull request Oct 12, 2020
# By karrie (7) and others
# Via GitHub
* develop:
  Removing cache option from main menu if s4a (streamlit#2149)
  Fix empty deploy page (streamlit#2148)
  Don't wait for unit tests before starting Cypress (streamlit#2142)
  Fix formatting of st.file_uploader docstring (streamlit#2141)
  Fix broken link in 0.68 changelog (streamlit#2144)
  Fix useEffect warning (streamlit#2137)
  Add global GTM container (streamlit#2128)
  Allow Streamlit server to handle Range Requests (streamlit#1967)
  rename hosted to hostedAt (streamlit#2132)
  Update change log
  Update notices
  Up version to 0.68.0
  Rename hosted to hostedAt in tracking data (streamlit#2132)
  Inject tracking data (streamlit#2110)
  [Feature Branch] File uploader (streamlit#2130)
  links for docs (streamlit#2129)
  Upgrade ProtobufJS and fix build script (streamlit#2118)
  Refresh landing page (streamlit#2116)
  Improve docstrings + tutorials for Layout (streamlit#2117)
  Better 'streamlit run' error message when no extension provided (streamlit#2115)

# Conflicts:
#	frontend/src/components/elements/Video/Video.tsx
#	frontend/src/components/widgets/FileUploader/FileUploader.test.tsx
#	frontend/src/components/widgets/FileUploader/FileUploader.tsx
#	frontend/src/lib/utils.ts
@karriebear karriebear deleted the feature/file-uploader branch October 15, 2020 05:29
@ntlind
Copy link
Copy Markdown

ntlind commented Dec 14, 2020

@karriebear thanks for your hard work on this! both of the demos you linked above return a 404; can you point them in the right direction?

@karriebear
Copy link
Copy Markdown
Contributor Author

@ntlind We don't maintain the hosting of demos once merged but you can check out the demo in our demo app for release 0.68.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants