• Hi,

    I’m trying to give members the opportunity to upload an image in their profile, so I’m using the “file” field type.

    I do get an upload form and in the database I find the filename present, but the file itself is nowhere to be found.

    Looking at the code, it seems nothing is done with the uploaded file, or am I missing something?

    https://www.ads-software.com/plugins/wp-members/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    No, you’re not missing anything – there’s nothing there on the upload side yet.

    Some development code was unintentionally left in. Actually, what got left in was the “file” selection in the list. The rest was being built in until it was ready for full inclusion (which its not yet). The roadmap has it for version 3.1 when a number of things will be updated for custom fields.

    In the meantime, since the cows are out of the barn already, I’ll probably put up a gist on github for people to use for file uploads. I’ll come back to this thread and post a link when I’ve got something up there.

    Thread Starter joost de keijzer

    (@joostdekeijzer)

    Hi Chad,

    I’m not sure if it’s a workflow you use, but I’ve send you a pull-request (on Bitbucket) for basic file support.

    The information stored is the output of wp_handle_upload(), being:

    array(
        'file' => '/full/path/to/file.ext',
        'url' => 'https://full/url/to/file.ext',
        'type' => 'mime/type'
    )

    Hye,

    I found my answer why it wasn’t workinf. Any ETA though?!

    Thx

    Plugin Author Chad Butler

    (@cbutlerjr)

    The file uploader script is currently a gist on github:
    https://gist.github.com/butlerblog/a7585aeb0fa0be3c7dc2

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"file" field type doesn't seem to work?’ is closed to new replies.