We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

CP/FilePicker Service Example

Development and Programming

OMGLLC's avatar
OMGLLC
48 posts
8 years ago
OMGLLC's avatar OMGLLC

Probably something dumb but I can’t get the FilePicker service to work. Can someone provide a working example that they used the Service with.

I followed the Simple Example from the documentation almost verbatim (I fixed a part where they refer to the $picker variable as $filepicker). It works as expected until I add the withValueTarget command.

Then I get: “Fatal error: Call to a member function withValueTarget() on a non-object”

I’ve tried a bunch of things to troubleshoot but I keep getting the same error, which is frustrating because there are only 4 lines of code.

Thanks in advance!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.