Copied to clipboard

Flag this post as spam?

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


  • Dee 106 posts 313 karma points
    Oct 05, 2019 @ 11:05
    Dee
    0

    Add Image File Upload to Umbraco Forms Field Types

    Hey Guys,

    I want to add a new Image Upload Field Type to Umbraco Forms. I found some useful links like this one (https://skrift.io/articles/archive/extending-umbraco-forms/) but all of them are implementing classes which inherit from FileUpload.

    I can't find the FileUpload class in Umbraco 8 dlls.

    If I inherit from FieldType then I need to re-implement the file upload, which is not a best practice.

    Any ideas?

    Thanks Dee

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Oct 05, 2019 @ 11:10
    Dennis Aaen
    0

    Hi Armin,

    You might be able to find some inspiration from this package. https://our.umbraco.com/packages/backoffice-extensions/umbraco-forms-on-perplex-steroids/

    As I see it this is not for Umbraco 8 yet, but you can find the source code here. https://github.com/PerplexInternetmarketing/Perplex-Umbraco-Forms

    And you can find the documentation about how to add a new Forms field type here https://our.umbraco.com/documentation/Add-ons/umbracoforms/developer/extending/adding-a-fieldtype

    Hope this helps,

    /Dennis

  • Dee 106 posts 313 karma points
    Oct 05, 2019 @ 11:12
    Dee
    0

    Hey Dennis,

    thanks for your quick reply.

    I already did this as well. In that solution, I am facing exactly the same issue, since it's also inherting from FileUpload (s. screenshot) which I am not able to refer to in Umbraco 8.

    enter image description here

  • Dee 106 posts 313 karma points
    Oct 05, 2019 @ 11:36
    Dee
    0

    Found it... seems that this has been moved to another namesape:

    Umbraco.Forms.Core.Providers.FieldTypes.FileUpload

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies