Hello,

I'm trying to make a file upload through a front end form. the form submits, but the file I try to send is not stored in any folder.

I'm running the latest version of statamic in Homestead and edited the assets folder to rwx.

My contact.yaml contains the following:

fields:
  name:
    display: Name
    validate: required|min:2
  file:
    display: file
    type: file
    destination: uploads/
# also tried /assets/uploads/

My form contains the following:

{{ form:create in="contact" formset="contact" files="true" }}
    <div class="form-group">
        <label>Name</label>
        <input type="text" name="name" value="{{ old:name }}" class="form-control" />
    </div>

    <div class="form-group">
        <label>file</label>
        <input type="file" name="email" value="{{ old:file }}" class="form-control" />
    </div>
{{ /form:create }}

So far nothing I try seems to work. Can someone explain what I'm doing wrong?

Answered by Erin Dalzell! Go to answer.