Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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
6 changes: 3 additions & 3 deletions app/src/js/components/DataUpload/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}

const defaultHelpText = 'Providing sample data files that are representative of the range of data within this data product will help the DAAC understand and provide feedback on the data format, structure, and content. Documentation files may include descriptions of the variables, filename conventions, processing steps, and/or data quality. If more than 10 total sample data and documentation files are necessary to represent and describe the data product, please contact the DAAC for assistance. Files must be less than 5 GB and cannot include .exe or .dll extensions.';
const defaultHelpText = 'Providing sample data files that are representative of the range of data within this data product will help the DAAC understand and provide feedback on the data format, structure, and content. Documentation files may include descriptions of the variables, filename conventions, processing steps, and/or data quality. If more than 10 total sample data and documentation files are necessary to represent and describe the data product, please contact the DAAC for assistance. Files cannot include .exe or .dll extensions.';
const defaultUploadDescription = 'Sample Data and Data Product Documentation';

class UploadOverview extends React.Component {
Expand Down Expand Up @@ -166,8 +166,8 @@ class UploadOverview extends React.Component {
let valid = false;
if (file.name.match(/\.([^\.]+)$/) !== null) {
var ext = file.name.match(/\.([^\.]+)$/)[1];
if (ext.match(/exe/gi)) {
this.setState({ statusMsg: 'exe is an invalid file type.' });
if (ext.match(/exe/gi) || ext.match(/dll/gi)) {
this.setState({ statusMsg: 'exe and dll is an invalid file type.' });
this.resetInputWithTimeout('Please select a different file.', 2000)
} else {
valid = true
Expand Down
Loading