Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Upload files in flex-directory plugin results error

Started by Marc F. 8 years ago · 0 replies · 741 views
8 years ago

I want to upload files in a flex-directory page. My entries.yaml file looks like this:

YAML
item_image:
          type: file
          label: photoBody
          random_name: true
          destination: 'data/uploads'
          multiple: true

After selecting a file I get an error:

{"error":{"type":"Error","message":"Call to a member function blueprints() on null","file":"\/Users\/me\/webdevs\/my-project\/user\/plugins\/admin\/classes\/adminbasecontroller.php","line":219}}

It seems that $data = $this->view === 'pages' ? $this->admin->page(true) : $this->prepareData([]);
allways return Null.

Have I forgotten to define something?

I would be very grateful for help.

last edited 06/15/18 by Marc F.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 350 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago