Use [fu-upload-response] for errors
-
Great plugin and really appreciate your support.
How do I use the short code [fu-upload-response] to display messages when a disallowed mime type has been uploaded?
I’m restricting to only jpg & png, but when I try to upload a PDF as a test, it still takes me to the “Success” page, but the URL indicates an error response. How do I display an error message instead of the “Success” page? Here’s my shortcode:
[fu-upload-form title="Submit Your Photo to (website)" form_layout="post_image" category="33" success_page="https://www.mywebsite.com/thank-you/"] [input type="text" name="post_title" id="title" class="required" description="Give the photo a title."] [textarea name="post_content" class="textarea" id="ug_caption" description="Tell us about your photo (optional)."] [input type="file" name="photo" id="ug_photo" class="required" description="Attach your photo (or use your mobile phone camera to take one)." multiple="multiple"] [input type="submit" class="btn" value="Submit My Photo!"] [/fu-upload-form]
Note: my version says 0.9.3.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Use [fu-upload-response] for errors’ is closed to new replies.