Show file upload size limit when uploading files

Also handle errors better.
This commit is contained in:
Dane Everitt 2016-12-01 18:32:05 -05:00
parent a03add7e4f
commit 72ad6d5c87
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 83 additions and 14 deletions

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddConfigurableUploadLimit extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('nodes', function (Blueprint $table) {
$table->unsignedInteger('upload_size')->after('disk_overallocate')->default(100);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('nodes', function (Blueprint $table) {
$table->dropColumn('upload_size');
});
}
}