FileUploadResumableField

Column Type integer/relationship

HasFilesTrait

You should add the Yadda\Enso\Media\Traits\HasFilesTrait trait to any model that uses this field. This will allow Enso to keep track of which files are used by which model and allow us to prevent deleting files when they are in use.

use Yadda\Enso\Media\Traits\HasFilesTrait;

class Thing extends Model {
    use HasFilesTrait;
}

Max Files

You can limit the number of fields that can be uploaded to a single field:

$field->setMaxFiles($limit);

Upload Path

Any uploaded files will be stored to a folder inside storage/app/public/media.

By default this folder will be named general but you can change this to whatever you like. Generall y we use images for images, audio for audio, etc.

$field->setUploadPath('images');