ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

File Upload to Member Profiles

October 29, 2011 6:35pm

Subscribe [2]
  • #1 / Oct 29, 2011 6:35pm

    Jake @ HFC

    56 posts

    Hi Support… having trouble with something I hope will be rather simple to fix.

    I’m developing a staffing website with a private members area, but instead of a Member Photo, we’d like each of our members to be able to upload their résumé in .PDF or .DOC format. When I attempt to upload either of those filetypes, I get the error message, saying only .gif, .jpg, and .png files are acceptable.

    Is there any way I can edit these settings, or am I looking at a much larger task to accomplish this?

  • #2 / Oct 31, 2011 8:20am

    Sue Crocker

    26054 posts

    Hi, Jake.

    You could instead create a channel for these kinds of entries, and then restrict them to a single entry in that particular channel using SafeCracker.

    Does that help?

  • #3 / Oct 31, 2011 12:23pm

    Jake @ HFC

    56 posts

    Hi Sue-

    So there’s no way to simply modify the file upload prefs for the members area? Man that’s frustrating. Such a simple need, and now I’ve got to jump though all of these hoops. Is there any documentation covering your recommendation?

    -Jake


    ADDED NOTE:
    I found the SafeCracker docs and I’ve spent today trying to get this new functionality to work, but I keep getting an error message. Here’s the code I’m working with:

    {exp:safecracker channel="resumes" return="user_main/upload_resume/success" entry_id=""}
    <input type="hidden" name="title" id="title" value="{embed="includes/.username"}" size="50" maxlength="100" class="input">
    <input type="hidden" name="url_title" id="url_title" value="{embed="includes/.username"}" maxlength="75" size="50">
    <input type="hidden" name="entry_date" id="entry_date" value="{entry_date}" maxlength="23" size="25">
    
    
    
    <label for="your_resume">Upload Your Résumé:</label>
    <input type="file" name="your_resume" id="your_resume" value="{your_resume}" class="input">
    
    <input type="submit" name="submit" value="Submit" class="button shadow">
    {/exp:safecracker}

    I’ve hidden most of the fields, so only the Your Résumé field is visible. I choose a file, click the Submit button, and I keep getting the error message saying the “The Your Résumé field is required”... even though I’ve already selected a file to upload.

    When I make the your_resume field NOT required, it gives me the success message. I login to the Control Panel to view the entry and the file, and the file I uploaded is NOT THERE!

    I’ve also noticed that it is creating new entries instead of overwriting the existing, even though I’ve specified the url_title. I’ve tried using

    {exp:safecracker channel="resumes" return="user_main/upload_resume/success"url_title="{segment_3}"}

    and putting their username in the URL, but then I get an error message stating I need to select a valid entry. The frustration grows…

    I’m completely stuck here. Really need some insight here. Thanks.


    #twiddles thumbs


    24 hours later… still no progress… still no help from support. I gotta say, EE, your customer support has dropped off SEVERELY in the past year, and I am not happy in the slightest. I’ve lost 2 days on this issue already, and it looks like I’m about to lose a 3rd over this very minor issue. You are losing a customer.

  • #4 / Nov 01, 2011 3:04pm

    Sue Crocker

    26054 posts

    Hi, Jake. I’m sorry you’re running into issues using SafeCracker.

    I see you’re using the File field type, can we have you change aover to the SafeCracker File fieldtype instead?

    The File fieldtype has a problem with SafeCracker.

    Bug report: https://support.ellislab.com/bugs/detail/16837

    Or you might want to explore Zoo Visitor which I haven’t tested, but it looks interesting.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases