Forum

Thread tagged as: Problem, Forms, Members

Members App - Upload File/Image

Hi,

Using the members App, I've successfully set up the templates (in members > forms) to allow upload of text data.

However, I also want to add a way to upload an image associated with each users - this is my template logo.html:

<perch:form id="profile" method="post" app="perch_members">
<perch:input type="image" id="logoColour" bucket="User Logos" />
<perch:input type="submit" value="Save" />
<perch:input type="hidden" id="token" />
</perch:form>

I've also added the following line to my member.html template;

<perch:members type="image" id="logoColour" label="Colour Logo" divider-before="Logos" bucket="User Logos" />

I can edit the logo in the perch admin backend of course - however the form pulled in using the following doesn't work. The image isn't uploaded nor is the value of ID 'logoColour' changed

<?php perch_member_form('logo.html'); ?>

I've seen some posts about setting the upload path for file uploads in forms, but (a) I don't know how, and (b) this isn't a standard form, but rather a members form, so I'm not sure of whether what I want can be done?

Thanks for any help you can offer!

Matthew Lymer

Matthew Lymer 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The Members app does currently handle image uploads for profiles.

No problem - I achieved this using a combination of the Perch Forms app, and a custom app for managing the images.