Skip to content

Commit

Permalink
Merge pull request #30 from Scout-NU/file-upload
Browse files Browse the repository at this point in the history
file upload
  • Loading branch information
gabbybruck authored May 22, 2022
2 parents ee612de + ccddee8 commit 024e02e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/pages/submit.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react';
import { graphql, useStaticQuery } from 'gatsby';
import Layout from '../components/Layout';
import { H2, P, H3, YELLOW, MarginContainer } from '../styles/styles';
import { PrismicRichText } from '@prismicio/react';
import * as React from "react";
import { graphql, useStaticQuery } from "gatsby";
import Layout from "../components/Layout";
import { H2, P, H3, YELLOW, MarginContainer } from "../styles/styles";
import { PrismicRichText } from "@prismicio/react";
import {
HeaderImage,
GetInvolvedSection,
Expand All @@ -23,9 +23,9 @@ import {
PaddedInput,
SubmitContainer,
Sprinkle,
} from '../styles/submit.styles';
import Button from '../components/Button';
import Triangle from '../images/sprinkles/Triangle-red.svg';
} from "../styles/submit.styles";
import Button from "../components/Button";
import Triangle from "../images/sprinkles/Triangle-red.svg";

const Submit = () => {
const submitQuery = useStaticQuery(graphql`
Expand Down Expand Up @@ -150,7 +150,9 @@ const Submit = () => {
name="Submit Work Form"
method="POST"
data-netlify="true"
action="/submit">
enctype="multipart/form-data"
action="/submit"
>
<input type="hidden" name="form-name" value="Submit Work Form" />
<FormRow>
<PaddedInput
Expand Down Expand Up @@ -181,7 +183,7 @@ const Submit = () => {
/>
<FormRow>
<UploadButton>
<HiddenInput type="file" />
<HiddenInput name="file" type="file" />
<UploadButtonText>
<UploadIcon />
{uploadButtonLabel.text}
Expand Down

0 comments on commit 024e02e

Please sign in to comment.