Episerver Forms: How to change where uploaded files are stored

During my session about Episerver Forms at the Øresund Episerver Developer meetup I received a question about how to change where uploaded files are stored

A quick look at how Episerver Forms manage the posted information I found that it is the DataSubmissionService that creates an Asset Folder and stores the file.

assetfolder

By replacing the original DataSubmissionService with a custom one that overrides the method StorePostedFile I could easily decide for myself where to store uploaded files.

Take a look at my example from GitHub.

One thought on “Episerver Forms: How to change where uploaded files are stored

  1. […] The only good reason I’ve heard where it would be necessary to replace the DataSubmissionService would be to override where uploaded files are stored. […]

Leave a reply to Where to integrate with Episerver Forms | Alf Nilsson talks Cancel reply