We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36571
    • 145 Posts
    Is there a way to allow the user to upload several images to their profile? I touched on this subject in another unrelated post, so I thought I would give it it’s own thread.

    Right now I have put photo2,photo3,photo4 etc in my &customFields parameter, and tweaked the html in the registration form like so:

    <label for="wlpeUserProfilePhoto" id="photolabel"> Image 1
    			<input id="wlpeUserProfilePhoto" type="file" name="photo" />
    
    		</label>
    		<label for="wlpeUserProfilePhoto" id="photolabel"> <br>
    		Image 2
    			<input id="wlpeUserProfilePhoto" type="file" name="photo2" />
    
    		</label>
    		<label for="wlpeUserProfilePhoto" id="photolabel"> <br>
    		Image 3
    			<input id="wlpeUserProfilePhoto" type="file" name="photo3" />
    		</label>
    		<label for="wlpeUserProfilePhoto" id="photolabel"> <br>
    		Image 4
    			<input id="wlpeUserProfilePhoto" type="file" name="photo4" />
    		</label>


    However, still no joy. I can see the table columns in the _extended table, but they don’t seem to want to populate. Any ideas?

    Thanks.
      • 26435
      • 1,193 Posts
      WebLoginPE is hard coded to look for $_FILES[’photo’] and process it and relocate it to the user image folder. It is not looking for $_FILES[’photo2’] etc.... so nothing is happening with those files.

      -sD-
      Dr. Scotty Delicious, DFPA.
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
        • 12684
        • 118 Posts
        I know this is really old, but at the same time the question is still very relevant. How do we allow for a larger number of photos, or perhaps be able to pull from a personal gallery page of some sort?
          • 28033
          • 925 Posts
          I dunno how to go about doing this, but if you could "grab" the user’s name, have FileUpload/etc. upload to a gallery/*usernamehere*, and then using FileDownload with a tweaked template to output all of the images from that folder (it’s how I do the Gallery/Icons on my site).
            My Snippets
            -> PopUpChunk v1.0