dcasia / nova-filepond

A Nova field for uploading File, Image and Video using Filepond.
MIT License
48 stars 27 forks source link

required make upload fail #2

Closed aemaddin closed 4 years ago

aemaddin commented 4 years ago

Steps to reproduce the error:-

1- setup new Laravel project 2- setup fresh nova 3- add posts table migration

public function up()
    {
        Schema::create('posts', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('image');
            $table->string('title');
            $table->text('description');
            $table->timestamps();
        });
    }

4- add Post model with

protected $fillable = [
        'title', 'description', 'image',
    ];

5- add nova Post resource

public function fields(Request $request)
    {
        return [

            ID::make()->sortable(),
            Filepond::make("image")
                ->disk("public", "posts")
                ->withoutDoka(),

            Text::make("title")
                ->rules("required"),

            Trix::make("description"),
        ];
    }

go to nova and try to upload a new image

Screen Shot 2019-10-05 at 11 00 56 PM
milewski commented 4 years ago

@aemaddin can you check your console / network logs to see what's the error you are getting?

milewski commented 4 years ago

Fixed on version v0.2.2,

and by the way, you don't need to add ->withoutDoka() if you havent configured it #enabling-doka-image-editor

aemaddin commented 4 years ago

👍

Thanks