• Resolved brianandgarcia

    (@brianandgarcia)


    On the registration form, I had a file upload field so that users can upload a picture of their ID. Then the user must be manually approved for security reasons.

    However, the URL that is created for the upload brings me to a 404. The URL it generates is something like /uploads/ultimatemember/3/yadayada.jpg. I noticed that these images are being thrown into a temp folder like /uploads/ultimatemember/temp/TdIldfkldfklasdeira/yadayda.jpg.

    How would I go about fixing this so I can view it correctly and it not 404ing?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @brianandgarcia,

    Do you have any security plugins installed?
    Can you please do a quick conflict test so we can rule out theme/plugin conflicts and see if you can successfully upload images.
    See our doc on how to do a conflict test if you are not sure.

    Regards.

    Hi @brianandgarcia,

    Please be so kind to post how you managed to resolve this issue?

    My Ultimate Member has been running for 2 year without issues, but now after a recent plugin update I experience exactly the same problem as you described.

    I cannot detect any conflicts as suggested by @ultimatemembersupport.

    Thank you in advance!

    Andre

    Bump.

    @ultimatemembersupport, any help please?

    @brianandgarcia, what did you find?

    @tetrabits, just started running into an almost identical issue on our site. Most uploads work, but not all. Hashed folders are sometimes created, but we never find the image in there. And the numbered folder is missing.

    For example, we have these folders:

    /ultimatemember/45
    /ultimatemember/46
    /ultimatemember/48

    47 is missing. I’m seeing some errors in the logs related to ultimate-member/includes/class-config.php, so I may check that out. But that doesn’t seem to make sense, since the behavior is happening sometimes for us.

    If I resolve it, I’ll report back. Seems we’re on our own for this one…

    Okay, I believe it’s related to images that exceed the Image Upload Maximum Width (Ultimate Member > Settings > General > Uploads).

    When our test user uploaded images larger than the maximum width, they were directed to the next page in the sequence as normal, and NO error message was raised. However, the image was not stored in the back-end folders.

    Now to figure out how to fix this…

    @ultimatemembersupport, can you weigh in here?

    EDIT: I understand after additional research that the intended action is for the plugin to automatically resize the image. Thus, no error appears in the logs with the image size. This makes it trickier to debug WHY the image isn’t being resized.

    I was wrong, and we fixed it! In our case, it was the upload_max_filesize variable in PHP. We set it as follows in a .user.ini file that we loaded to our site, which solved the issue:

    upload_max_filesize = 6M

    Hope this helps.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘File Upload – Temp Folder 404’ is closed to new replies.