guest can’t upload in front
-
Hello, I have an issue.
I wanted ot make a public gallery where everyone can upload picture.
So I installed our plugin, created the page with the upload short code and in option I added the “Guest” into both “Users allowed to share pictures” and Users allowed to directly publish pictures
This cannot work and tell me “only logged user can upload”.
So I removed in picture-gallery.php, line 1043 this piece of code :
if (!is_user_logged_in()) { return __('Login is required to upload pictures!', 'picture-gallery'); }
so now non logged user can upload but even if the picture load to 100%, I cannot get the message with “Picture was published” and “Thumbnail will be processed shortly”. instead there is text “0” and picture is not uploaded in wordpress.
the error is “status 400” in js xhr.send(
xhr.open("POST", vwEBI("upload").action, true); xhr.setRequestHeader("X-FILENAME", file.name.replace(/(<([^>]+)>)/ig,"")); xhr.setRequestHeader("X-CATEGORY", vwEBI('category').value.replace(/(<([^>]+)>)/ig,"")); xhr.setRequestHeader("X-OWNER", vwEBI('owner').value.replace(/(<([^>]+)>)/ig,"")); xhr.setRequestHeader("X-DEV", 'Uploaded with VideoShareVOD.com script by VideoWhisper.com'); xhr.setRequestHeader("X-GALLERY", vwEBI('gallery').value.replace(/(<([^>]+)>)/ig,"")); xhr.setRequestHeader("X-TAG", vwEBI('tag').value.replace(/(<([^>]+)>)/ig,"")); xhr.setRequestHeader("X-DESCRIPTION", vwEBI('description').value.replace(/(<([^>]+)>)/ig,"")); xhr.send(file);
Could you help me ?
The page I need help with: [log in to see the link]
- The topic ‘guest can’t upload in front’ is closed to new replies.