Support » Developing with WordPress » Only allow 1 Image to be uploaded at a time

  • Harmonic Design

    (@harmonic_design)


    I need to disable multiple uploads at a time. I am using wp.media.frames on the front end of the site, and cannot use upload_prefilter since it would need to check a post for total uploads – which is not what I want.

    I need to limit total uploads so that a user does not upload multiple images that are not used but are still stored on the server.

Viewing 1 replies (of 1 total)
  • Hi, I’ve heard of people doing this using a custom plugin. Check on Github possibly, or you might need to hire someone to create this for you. Hopefully, someone on the forums knows more about this than me and can help you with it.

    One option which isn’t the solution you’re looking for would be to set max upload size in php.ini to such a value that only 1 image could be uploaded. This might cause some issues if users try to upload files that are too large or being able to upload multiple small files.

Viewing 1 replies (of 1 total)
  • The topic ‘Only allow 1 Image to be uploaded at a time’ is closed to new replies.