Developer forum

Forum » Development » dynamic upload folder in DW Form module

dynamic upload folder in DW Form module

Kim SĂžjborg Pedersen
Reply
Hi, I am using a DW 7 Formular module to host a upload field. Is it possible to set the upload folder to something dynmamic. As it is right now you set the upload folder on the paragraph when you insert the formular module.

I need to set to a user specific folder.. Anyone?

Replies

 
Vladimir
Reply
Hi Kim!
I think you may achive that by implementing of Modules.DataManagement.FormSaveProvider
It has an ovveridable function:
Public Overridable Function Save(ByVal Form As FormSetting, ByVal KeysAndValues As Dictionary(Of String, Object), ByVal Settings As String) As Boolean

When DW Form is saved, it executes this function for all providers. File should be uploaded at that time, so all you have to do, is move it to a right folder.

Best regards,
Vladimir

 

You must be logged in to post in the forum