diff --git a/resources/views/server/files/add.blade.php b/resources/views/server/files/add.blade.php index 62cff9719..ac3fdadea 100644 --- a/resources/views/server/files/add.blade.php +++ b/resources/views/server/files/add.blade.php @@ -268,7 +268,7 @@ $(window).load(function () { url: '{{ route('server.files.save', $server->uuidShort) }}', headers: { 'X-CSRF-Token': '{{ csrf_token() }}' }, data: { - file: '{{ $directory }}' + $('#file_name').val(), + file: $('#file_name').val(), contents: Editor.getValue() } }).done(function (data) {