duanbixia7738 2015-10-13 01:38
浏览 42
已采纳

Laravel表单 - 加载文件字段

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?

  • 写回答

1条回答 默认 最新

  • douchuang4181 2015-10-13 01:42
    关注

    You can not set value of the file input.

    Related questions:

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部