Copied to clipboard

Flag this post as spam?

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


  • Jan-Pieter Hoiting 6 posts 36 karma points
    Jan 10, 2017 @ 16:56
    Jan-Pieter Hoiting
    0

    Umbraco Forms and saving json files to Azure Blobstorage

    Hello All,

    Quite new to this forum so please bear with me ;)

    I'm currently configuring a new installation of Umbraco Forms (v 4.4.0) to use AzureBlobStorage in my Umbraco project ( 7.5.4 assembly: 1.0.6136.27241 )

    I have created a new Provider node by copying the the one already present for 'media' and changing the property value of "containerNode" to "form" and the "alias" property to "forms".

    However when i try to create a new form, i only get a blank screen, and when i try to open the "Forms" folder in the Forms section i get the following error.

    "Value cannot be null. Parameter name: stream"

    Accompanied, by a stacktrace I have included as a screenshot.

    Error Screenshot

    When I change the Provider from azure setting to use the filesystem it works just fine.

    Does anyone have an idea what i did wrong?

    Kind regards,

    Jan-Pieter Hoiting

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Jan 11, 2017 @ 14:05
    Warren Buckley
    0

    Hello Jan,
    What is the config format you have when trying to use AzureBlob (obviously feel free to replace connections sensitive data with XXXX's)

    Wondering if you have a setting missing perhaps.

    Also what version of the Community Azure Blob Provider are you using?

    Docs for this are here - https://our.umbraco.org/documentation/Add-ons/UmbracoForms/Developer/IFileSystem/

  • Jan-Pieter Hoiting 6 posts 36 karma points
    Jan 11, 2017 @ 14:15
    Jan-Pieter Hoiting
    0

    Hi Warren,

    Thanks for your reply!

    I have tried the following config format:

    <Provider alias="forms" type="Our.Umbraco.FileSystemProviders.Azure.AzureBlobFileSystem, Our.Umbraco.FileSystemProviders.Azure">
    <Parameters>
      <add key="containerName" value="form"/>
      <add key="rootUrl" value="https://vrf-dev-cdn-end.azureedge.net/"/>
      <add key="connectionString" value="DefaultEndpointsProtocol=https;AccountName=[XXXXX];AccountKey=[XXXXX]"/>
      <add key="maxDays" value="365"/>
      <add key="useDefaultRoute" value="true"/>
    </Parameters>
    

    I'm using the following Packages regarding AzureBlobStorage: AzureBlobStoragePackages

    Regards,

    Jan-Pieter

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Jan 11, 2017 @ 15:03
    Warren Buckley
    0

    Config seems OK to me at first glance, so I will try to reproduce with the versions and report back soon.

  • Lazau Florin 74 posts 210 karma points
    Mar 10, 2017 @ 14:41
    Lazau Florin
    0

    Hi Jan-Pieter,

    Regarding web config in official documentation, it appears that the recommended name for the container is "form-data" because with form I got some errors.

    For me this didn't work so I added the dll direct from this project https://github.com/JimBobSquarePants/UmbracoFileSystemProviders.Azure

    Now it works, and I have the forms in blob.

    The issue is that if I upload an image in a file uploader (in a form) that image is saved in the media container.

    Florin,

  • Jan-Pieter Hoiting 6 posts 36 karma points
    May 24, 2017 @ 14:26
    Jan-Pieter Hoiting
    0

    Hi Florin,

    Thanks for the post and excuse my late reply.

    Will be looking into it.

    I'll update when i have more info.

    Regards,

    Jan-Pieter

Please Sign in or register to post replies

Write your reply to:

Draft