• Resolved anthonyflibustiers

    (@anthonyflibustiers)


    Hello team !

    I hope you are doing well.

    I would like to know if there is a way to preview the image that has been uploaded via a form, just like it is possible to preview text fields, before submission.

    Thanks !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @anthonyflibustiers

    I hope you’re well today!

    I’m assuming that you mean previous using HTML field on the form, right?

    It wouldn’t be possible to show such preview there directly as the full path to the file is unknown until actual submission is made and, otherwise, we would need to use some script to fetch the file to be shown directly from the source.

    This would require quite a bit of custom code to make it work with HTML field but you can use a “smaller preview” instead directly in upload field: you just need to make sure that the upload field is set to “multiple” mode instead of “single” and then in settings the “AJAX” upload method is enabled.

    This way a small thumbnail of uploaded file will be showing up right away automatically in upload field. Note that if you only need a single upload – you can still set the limit to “1” in settings of the upload field, even despite the “mode” being set to “multiple”.

    Best regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @anthonyflibustiers ,

    We haven’t heard from you for some time now, so it looks like you don’t have more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Preview fields and images’ is closed to new replies.