0

I have a file field in my form like this:

<div class="form-group">
    {!! Form::label('pdf', 'PDF Template') !!}
    {!! Form::file('pdf') !!}

    <a href="{{route('download_pdf', ['id' => $template->id])}}">Download current PDF</a>
</div>

I'm using the laravelcollective package to create my forms.

Now on my edit page I would like to load the current file (set the file field). But how can I do this?

nielsv
  • 6,200
  • 31
  • 105
  • 208

1 Answers1

2

You can not set value of the file input.

Related questions:

Community
  • 1
  • 1
aeryaguzov
  • 1,123
  • 1
  • 10
  • 20
  • 1
    its not best practices to mention only reference link... please provide some solution or weather add the question to duplicate or something other moderator as per you references. – Safoor Safdar Oct 14 '15 at 05:01