diff --git a/src/Andrew13/Cabinet/CabinetUpload.php b/src/Andrew13/Cabinet/CabinetUpload.php index 2f57f7e..2299bb9 100644 --- a/src/Andrew13/Cabinet/CabinetUpload.php +++ b/src/Andrew13/Cabinet/CabinetUpload.php @@ -185,7 +185,6 @@ public function resolveFileName($folder, UploadedFile $file, $enableObfuscation= } else { $fileName = $file->fileSystemName; } - } // If file exists append string and try again. if (File::isFile($folder.$fileName)) { diff --git a/src/migrations/2013_06_22_020738_cabinet_setup_uploads_table.php b/src/migrations/2013_06_22_020738_cabinet_setup_uploads_table.php index dfa457f..308434e 100644 --- a/src/migrations/2013_06_22_020738_cabinet_setup_uploads_table.php +++ b/src/migrations/2013_06_22_020738_cabinet_setup_uploads_table.php @@ -19,6 +19,7 @@ public function up() $table->string('path'); $table->string('extension'); $table->string('mimetype'); + $table->bigInteger('size')->unsigned(); $table->integer('user_id')->unsigned()->index(); $table->softDeletes(); $table->timestamps();