New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Profiler error "The User is field is required."

Philippe Pasquin February 5, 2020 by Philippe Pasquin

Just purchased Profiler and get the following error when trying to upload a file to a user profile. " The User is field is required. "

Here is an overview of the code:

{{ profiler:edit_form files="true" }}
... multiple fields that works...
<div class="input-group">
                    <div class="input-group-prepend">
                      <span class="input-group-text" id="inputGroupFileAddon01">Upload</span>
                    <div class="custom-file">
                      <input type="file" class="custom-file-input" id="athlete_main_image" name="athlete_main_image" >
                      <label class="custom-file-label" for="inputGroupFile01">Choose file</label>

              <div class="contact-form__row contact-form__row--submit  contact-form__submit-button-right">
                  <div class="contact-form__field" style="color:#000;">
                      <button class="btn btn-elegant">Update</button>
{{ /profiler:edit_form }}
Answered by Philippe Pasquin!
>>>>>>> Answered <<<<<<<
2 Replies