Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Upload files in flex-directory plugin results error

Started by Marc F. 8 years ago · 0 replies · 635 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 renedebaaij, 12 hours ago
0 17 12 hours ago
Plugins · by complanar, 2 weeks ago
6 379 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 197 2 weeks ago
Plugins · by complanar, 1 month ago
2 473 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 750 2 months ago