We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07080e0 commit 59b5097Copy full SHA for 59b5097
components/pages/submission/Environmental/NewSubmissions/index.tsx
@@ -58,7 +58,8 @@ const NewSubmissions = (): ReactElement => {
58
oneOrMoreCsv.forEach((csvFile) => {
59
// TODO: Fine grained permissions. Check if user has permission to upload Environmental data to this organization
60
// Taking the organization name from the filename
61
- formData.append('organization', csvFile.name);
+ const organizationName = csvFile.name.split('.')[0];
62
+ formData.append('organization', organizationName);
63
// Submission service expects a file with the name of the schema it represents
64
formData.append('files', csvFile, 'sample.csv');
65
});
0 commit comments