Forum

Thread tagged as: Question, Members

Adding Assets as a NON-admin (e.g. a Perch Member or non-user)

Hi,

I'm aware that admin users can add new assets in the /perch backend (either in assets or inside templates with upload buttons) - but I ideally need a way for non-admins to be able to upload images (which I can achieve fine using PHP) that make their way into the assets area.

Now, I'm sure I'll be able to combine PHP and a mysql query to push the image into the relevant folder and into the database - but I wondered if there's a prebuilt way to achieve this in perch?

Thanks,

Matthew Lymer

Matthew Lymer 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

There's not currently an API for this, but about the best guide would be:

/perch/core/apps/assets/modes/upload.pre.php

Thank you sir - most helpful!