• Resolved Daedalon

    (@daedalon)


    On [event_form], when one adds an event’s details, including an image, submits the event, and then gets a notification that something needs to be adjusted before the event can be added, the uploaded image is not shown anymore at the event image section. However, according to $_FILES[‘event_image’], the image is already stored on the server.

    I think I’ve seen a discussion somewhere related to this that there was some security reason why the uploaded file shouldn’t be shown. As there are dozens of sites that have implemented an upload that doesn’t forget the file when other parts of the form fail, and I couldn’t get my hands on that old discussion I remember seeing, I’d like to ask why doesn’t Events Manager remember and use that once-uploaded file when [event_form] submission fails?

    http://wordpress.org/plugins/events-manager/

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

    (@angelo_nwl)

    hi,

    am going to let Marcus know about this.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    There are security implications, but eventually we could look into making this more user friendly.

    Thread Starter Daedalon

    (@daedalon)

    Thanks. We’re developing functionality that makes the work flow of adding many events more efficient and we found this to be an obstacle to many improvements.

    One way to improve that comes to mind is saving every event submission as a draft. That gives a perfect opportunity for saving the attachment in a secure way. WP core should provide most of the functionality for this apart from the event-specific ones you’ll need to do (making sure drafts don’t show up in wrong searches etc).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remember uploaded image when form fails’ is closed to new replies.