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.
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...
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.
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
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
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
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 :
So I guess currently there is no way to separate them...
Thanks either way,
/Dawid
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.
is working on a reply...