• Hi All,
    I am trying to upload documents in user profile custom meta using front end form , I have created many fields in user profile meta all fields data ware being saved using custom front end form but I didn’t find any solution to upload documents.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You can upload the document in the same way as it is done with PHP. The $_FILES array contain the file data which can be processed and then in case of errors you can show error messages otherwise you can upload the document using WordPress native functions and then save the attachment id in the custom meta for showing or referencing it later.

    Please consider this article which added fields in the user profile and also shows how you can process and save the document files.

    Kind Regards,

    Thread Starter 20yogesh

    (@20yogesh)

    Yes, but problem is that file is not selected in that custom meta field
    While file is being moved in media library

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I want to upload documents in user profile’ is closed to new replies.