Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Joel 1 post 71 karma points
    Mar 15, 2019 @ 14:27

    Retain previous file uploads when editing a form

    If anyone has any clues -

    In editing an Umbraco Form, I'd like members of the site to be able to retain their previous file uploads. In its current state, upon submission, these file uploads are cleared from the model and replaced with the new uploads.

    It appears that the FieldType.FileUpload Razor file contains hidden input fields, one for each currently existing upload. However, it seems that the Umbraco Forms Controller ignores these hidden inputs. Additionally, since I want to support multiple file uploads, setting the value attribute of the input tag won't suffice.

    Any thoughts? My next step is probably to override/hook into some parts of the UmbracoFormsController.

Please Sign in or register to post replies

Write your reply to: