• Resolved hicham538

    (@hicham538)


    I have a problem with photos upload in the registration form.
    When the fields are filled well and everything correct, the submit button is pushed, and the uploaded photos are saved well.
    The problem arises when some fields which are mandatory are left empty, or that the content of some field has an error (for example, email already registered), in this case when the submit button is clicked, the form is reloaded indicating the field that remains to be filled in and/or the error to be corrected, the photos that have been uploaded before appear uploaded (saved in tmp folder), but when the necessary corrections are made and the form is submited successfully, the uploaded photos are deleted from the tmp directory but not saved. In the user data appears the uploaded file field with https://domain.com/wp-content/uploads/ultimatemember/28/stream_photo_812e77fe449fc740642f580acbbf0350c60b6b35.jpg
    But when I click on the link of the photo I get error page. The /uploads/ultimatemember/28/ is empty
    Is there some configuration that could resolve this?
    Thank you so much for your help
    Hicham

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hicham538

    Could you please test the issue with UM as the only active plugin and use a default WP theme such as 2020 or 2021?

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hicham538

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. …Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂

    Regards,

    Thread Starter hicham538

    (@hicham538)

    Hi Champ,
    Thank you so much for your attention and help.
    I did what you told me. I even made a new wordpress installation and put only the plugin ultimate member, but I got the same issue. Then I knew that it wasn’t quesiton of incompatibility or conflict with other plugins
    Finally I descovered what was the problem:
    Really I was making the tests wrongly: After oploading the images and enter an existing user email then I got error of “Email already existe”, after I open the admin panel (in other navigator tab) and remove this user, then I return to the form and re-submit it, the form is submitted correctly but the images aren’t saved. I think what happen in this case is that the images are saved in the tmp folder, and in the first submit they are affected to the ID of the existing user. When the user is deleted and re-created it get a new ID but the images remain linked to the old ID.
    In the real case that would not happen, because in case the email exists, the user will enter a different one, and in this case the images are saved correctly.
    Thank you so much and I congratulat you for this fantastic plugin, one of the best plugins of wordpress.
    Hicham

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hicham538

    Thanks for letting us know.

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with the files upload’ is closed to new replies.