• Resolved ottomek

    (@ottomek)


    Hi,
    Is there a premium add-on or script to set a different folder for the event images that are uploaded on the front-end (by viewers, not a WP admin)? We don’t want these going into the standard WP image/uploads folder.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    at the moment this is not yet possible out of the box however maybe you can try to search for other wp plugin which can do this since I think this is more of a wp issue (EM uses https://codex.www.ads-software.com/Function_Reference/media_handle_upload)

    The file upload in the front-end event submission form uses the constants EM_IMAGE_UPLOAD_URI and EM_IMAGE_UPLOAD_DIR, both of which are defined in wp-content/events-manager/events-manager.php (lines 172-190). EM sets it to wp-content/uploads/events-manager.

    If you change the data (both the path and url) there, it will change the upload dir. Be aware though, that those changes will be lost when EM updates.

    Unfortunately you cannot “undefine” a defined constant.

    @angelo_nwl… Event images (featured images from the Admin) are uploaded to the default WP Media Library. But the OP is talking about user submitted images through the font-end event submission form. Those are uploaded (by default) to uploads/events-manager. Since that custom folder is defined by EM, a third-party plugin will have no effect. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Event Image upload folder’ is closed to new replies.