• Resolved biziame

    (@biziame)


    Hey guys,

    I’ve set up a frontend image upload section for my site, but I’m having trouble with duplicate file names. If someone tries to upload two images with the same name, only one gets saved. Also, if an image already exists with that name, the upload fails.

    Is there a way to fix this? I’d love for users to be able to upload images even if they have the same name. Maybe the system could rename duplicates or add something to the name to make it unique.

    Any tips would be awesome! Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Support Saiful Islam

    (@saifislam01)

    Hi @biziame,

    Thank you for reaching out. I understand you’re encountering issues with duplicate file names when using the WP User Registration Plugin’s frontend image upload feature. This is a common concern, and fortunately, there’s a way to handle it effectively.

    To ensure that each uploaded image is unique, you can implement a function that automatically renames files if a duplicate is detected. This way, users can upload images without worrying about name conflicts. You’ll need to add custom code to handle file uploads and rename duplicates. This can be done by hooking into the upload process.

    Hope this information will help.

    Best regards,

    Viewing 1 replies (of 1 total)
    • You must be logged in to reply to this topic.