Skip to content

Conversation

@tcnichol
Copy link
Contributor

This is a draft for now, but the idea is to allow for multiple files to be uploaded at once.

Currently you can select multiple files at the same time, but if you try to select them one after the other it just replaces the file.

Also, I am getting a 422 error on upload.

To see an example of the POST request that works, you can check the new upload_files in the test utils.

@tcnichol tcnichol linked an issue Oct 19, 2023 that may be closed by this pull request
@tcnichol
Copy link
Contributor Author

Some recent changes.

In the DatasetService.ts, the formData.append() method never appended anything, so I am creating the formdata earlier. There are console logs that show that the formdata does have the right entries.

However, when I actually get to making the request, I get a 400 error, and in chrome developer tools, under network, payload, the FormData appears to be blank. This is not the case with the single file.

tcnichol and others added 15 commits November 2, 2023 14:33
error:

"WARNING:multipart.multipart:Did not find CR at end of boundary (40)"
* add endpoint and test

* codegen and black

* add action

* add search and get endpoint

* add search and get endpoint to action

* add to reducer

* basic page for metadata definition ready

* add delete confirmation

* add create metadata modal

* ordering in decending order

* update message

* black

* fix the pytest

* codegen

* fix codegen
* disable ripple effect

* fix the stretch

---------

Co-authored-by: Chen Wang <[email protected]>
* immediately update before the time interval refresh

* add proper reset
* Implement wordcloud visualization

* Changing the name
* button to create datasets if none exist

* new  message

* center, no previous and next if we have no datasets
* Updated the labels for Share

* Fixed the message
* new page of metadata definition entry

* initial page for metadata definition page

* basic metadata defintion page
…791)

* we now replace the old extractor

* created timestamp is from original extractor
* placeholder for where new version select will go

* not clickable, new imports

* select no longer in version chip
new dropdown on filepage
problem - current version not selected on file load

* does not look good
select and file details end up at bottom

* clean up the logic

* fix bug

* make it look nicer

* add snackbar

* change to half width

* change history to details

* remove width

---------

Co-authored-by: Chen Wang <[email protected]>
* add swagger to traefik

* add to deployment

* add to ingress rule
* updated

* typo

* missed more spots
@tcnichol tcnichol marked this pull request as ready for review November 3, 2023 17:34
@ddey2 ddey2 self-requested a review November 6, 2023 17:42
Copy link
Member

@ddey2 ddey2 left a comment

Choose a reason for hiding this comment

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

Works. tested

@longshuicy longshuicy merged commit 847b570 into main Nov 6, 2023
@longshuicy longshuicy deleted the 787-enable-uploading-multiple-files-at-once branch November 6, 2023 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable uploading multiple files at once

5 participants