Copied to clipboard

Flag this post as spam?

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


  • Dawid 26 posts 136 karma points c-trib
    Mar 07, 2018 @ 14:06
    Dawid
    0

    Store Umbraco Forms uploaded files outside of the media folder

    Is there a way to store the files uploaded via Umbraco Forms in different folder than the media files ?

    Umbraco Forms version : 4.4.5

    Umbraco version : 7.6.11

    We have a project hosted on Azure and we are using Blob storage for media, but this also means that files uploaded via Umbraco Forms are also visible for the outside world. Those files may contain sensitive data and should only be accessed by users that are logged in into backoffice.

    I aware that the uploaded files have GUID generated for them but they are still accessible and they shouldn't be.

    The ideal solution would be to store files uploaded in local directory and allow access only for logged in users and store other media in Azure Blob.

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Mar 23, 2018 @ 18:38
    Dennis Aaen
    0

    Hi David,

    Could it be that you have hit into this issue. http://issues.umbraco.org/issue/CON-1252

    If so please be aware to be able to use Umbraco 7.0.0, you will also have to upgrade your Umbraco installation to at leat 7.9.0

    /Dennis

  • Dawid 26 posts 136 karma points c-trib
    May 18, 2018 @ 11:47
    Dawid
    0

    Sorry for not responding for so long. Had to deal with some other stuff.

    I actually haven't stumble upon this issue.

    My question was that if I can separate media from files uploaded via Umbraco Formst?

    /Dawid

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    May 18, 2018 @ 12:11
    Dennis Aaen
    0

    Hi Dawid,

    Dont be sorry. You should have a look at: https://our.umbraco.org/documentation/Add-ons/UmbracoForms/Developer/IFileSystem/#storing-form-files-with-ifilesystem

    This is what you need to be able to save media files in Azure blob storage in Umbraco Forms.

    Hope this helps,

    /Dennis

  • Dawid 26 posts 136 karma points c-trib
    May 18, 2018 @ 12:24
    Dawid
    0

    Hi Dennis,

    Thanks for fast response.

    Unfortunately this article only covers the way how to store the Umbraco Forms definitions, Workflows and PreValues.

    On the bottom section of this article there is a note that says :

    Forms containing upload fields

    Any form containing an upload field will use the same IFileSystem provider with the alias="media" to upload the submitted files in any form submission.

    So I guess currently there is no way to separate them...

    Thanks either way,

    /Dawid

  • Rick Mason 38 posts 169 karma points
    Aug 03, 2018 @ 13:37
    Rick Mason
    0

    Hi Dawid

    I've got a fork of UmbracoFileSystemProviders.Azure which does what you need: https://github.com/east-sussex-county-council/UmbracoFileSystemProviders.Azure/tree/umbraco-forms

    I've also logged it on the issue tracker at http://issues.umbraco.org/issue/CON-1454 so please consider voting for it.

Please Sign in or register to post replies

Write your reply to:

Draft