Skip to content
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

File and Alias Validation #76

Merged
merged 3 commits into from
Sep 1, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
file validation working
chriscsykes committed Sep 1, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 4c40ec793f4f1df44cdb15ce8b21e243e36f522f
3 changes: 3 additions & 0 deletions src/pages/codeEditor.js
Original file line number Diff line number Diff line change
@@ -139,6 +139,8 @@ Statistics/Data Analysis`;
const [uploading, setUploading] = useState(false);
const [runLoading, setRunLoading] = useState(false);

// const validFileExtensions = ['.csv'];

const tabStyle = {
minWidth: 124,
paddingLeft: 10,
@@ -562,6 +564,7 @@ Statistics/Data Analysis`;
type="file"
name="uploadFile"
onChange={onFileChosen}
accept=".csv, .dta, .xlsx, .xls, .pkl, .hdf"
/>
<TextField
value={alias}