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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Upload files in flex-directory plugin results error

Started by Marc F. 8 years ago · 0 replies · 480 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 Rene, 1 week ago
2 54 1 week ago
Plugins · by Xavier, 4 weeks ago
2 61 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1188 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 54 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 79 2 months ago