Event Image Not Retained if Submission is Initially Rejected

Home Forums Calendar Products Community Events Event Image Not Retained if Submission is Initially Rejected

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1148679
    Sean
    Participant

    Hi,

    When a user attempts to submit an event via the Community Events Submit an Event form and it is rejected (if one or more required fields are left blank), the file that has been selected for upload in the Event Image section is erased/removed. This is not an ideal user experience, as they must re-select the file to upload as their event image (some users may not realize their selected file was “erased” from the form and thus it will inadvertently be missing when they successfully resubmit the form).

    Whether this a bug or the form designed to function this way, is there anything we can do to retain the file path selected for the Event Image when the form is initially rejected (as all the other fields on the form are)?

    Thank you,
    Karly

    #1148798
    Brian
    Member

    Hi Karly,

    This is by design.

    When you choose an image we do not load the image onto the server immediately so when there is a reload for security the browser clears the selection.

    Otherwise you might be able to spoof the upload process and create an exploit.

    There is a way around that and that is to use AJAX to immediately upload and validate the image and save it to the server. That way the link can remain.

    However, that takes a rebuild on the image upload and not a supported feature so I do not have any coding to provide on that to help out.

    If you think that is something you would like as a feature I encourage you to visit our User Voice Page and either upvote an existing request or make a new request there.

    http://tribe.uservoice.com/

    Let me know if you have any follow up questions.

    Thanks

    #1148856
    Sean
    Participant

    Hi Brian,

    Thanks for the quick reply and for explaining why this was built this way. The security issue makes sense and I understand that an AJAX workaround would be a bit involved than a simple snippet. I appreciate the suggestion!

    Best regards,
    Karly

    #1148919
    Brian
    Member

    Great, glad it helps explain it, I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Event Image Not Retained if Submission is Initially Rejected’ is closed to new replies.