0

I'm using Laravel5.1 and tinyMCE with laravel file manager (unisharp) and I'm always getting this error when I'm uploading big files (e.g. 20MB and up). I've searched about it on internet but I didn't find something similar with my problem. Please see my code for your review.

Code:

<div class="input-group">
    <input type="text" name="file_path" id="file_path" class="form-control" value="{{ Request::old('file_path') }}" readonly>
    <a id="lfm" class="input-group-addon btn btn-primary" data-input="file_path">
        <i class="fa fa-file"></i> Choose file...
    </a>
</div>

Script:

<script>
    getTiny('{{ URL::to('/') }}', 'textarea'); // customized function for tinyMCE
    {!! \File::get(base_path('vendor/unisharp/laravel-filemanager/public/js/lfm.js')) !!}
    var domain = "{{ URL::to('/') }}/laravel-filemanager";
    $('#lfm').filemanager('file', {prefix: domain});
</script>
Blues Clues
  • 1,694
  • 3
  • 31
  • 72

1 Answers1

0

Try to set a larger upload_max_filesize in php.ini, see here. Or any corresponding configs of your server like NginX or Apache.

Stream Huang
  • 326
  • 1
  • 3
  • 7
  • Is there any way to solve this? because I don't want to change my `php.ini` again and again, if I have other projects. – Blues Clues Sep 04 '17 at 06:34