-
Notifications
You must be signed in to change notification settings - Fork 3
Feat: Added feature to import .csv files to tables #740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/features/instance/databases/components/BrowseDataTableView.tsx
Outdated
Show resolved
Hide resolved
src/features/instance/databases/components/BrowseDataTableView.tsx
Outdated
Show resolved
Hide resolved
src/features/instance/operations/schemas/addCSVDataFormSchema.ts
Outdated
Show resolved
Hide resolved
src/features/instance/databases/components/BrowseDataTableView.tsx
Outdated
Show resolved
Hide resolved
|
dawsontoth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working well! I noticed I couldn't drag-and-drop files, and I had a suspicion about how to fix it, so I experimented and pushed up a fix. The short of it is... to let them drop, there are two options that I think are valid:
- Make a JavaScript dropzone or something, with some APIs, respond to the events, handle them... it's a thing, I think, and kinda complicated, but not totally nuts.
- Make the file input 0% transparency, and position above your drop-and-click zone. So if someone drags a file over it, or clicks on it, we pop open the file dialog.
I opted for 2. 😄 Now I can drag in files, or click-to-select, and I see my files upload! Nice work, @BboyAkers .



Ticket:
STUDIO-449
Overview:
Added feature to import
.csvfiles to tables