Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Upload files in flex-directory plugin results error

Started by Marc F. 8 years ago · 0 replies · 562 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 Vladimir Novak, 2 weeks ago
3 292 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago