How to allow guest to upload images from frontend?
-
Hey there,
i have two questions. How to allow guests/visitors to add images to the media libary? I’ved tried to set a role and set the cap to allow and also tried with this code snippet, but it’s not working for me. I’m working OOPMy second question is how to restrict to selected only images files? I cant’t set the attribute
accept image/*
because the cmb file type is an hidden input field<input type="hidden" accept="image/*" value="0" id="kradblatt_image_id" name="kradblatt_image_id" class="cmb2-upload-file-id"><div class="cmb2-media-status" id="kradblatt_image_id-status">
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to allow guest to upload images from frontend?’ is closed to new replies.