We purchased the latest version of the module - 14665_0_DataSprings_DynamicForms_Module30_DNN45PLUS.zip.
During the testing, the file attachment field was not functional when we set the filename type to be: Exact filename or riendly name.
file format that I tried to upload is .pdf and .doc, and we use the default upload directory. Files hasn't been uploaded successfully, and from the view result page, the file field shows the full quality file name on client's computer!! e.g if we upload a file from y drive, and in the form result page, it shows Y:\_T and T\...\DotNetNuke Installation Guide.pdf. I then use .Nets redgate reflector to check your source code(Sorry I have to do it that way as we paid 400 AUD for the W /source , but there is no sourcecode available in the download page), and found a bug:
if (upload.FileNameType == 0) { fileName = Guid.NewGuid().ToString() + Path.GetExtension(upload.fileUpload.get_PostedFile().FileName); } else if (upload.FileNameType == 1) { fileName = Strings.Replace(Strings.Replace(Strings.Replace(upload.fileUpload.get_PostedFile().FileName, extension.ToString(), "", 1, -1, CompareMethod.Text) + "_" + DateAndTime.Now.ToString() + extension, "/", "-", 1, -1, CompareMethod.Text), ":", "-", 1, -1, CompareMethod.Text); } else if (upload.FileNameType == 2) { fileName = upload.fileUpload.get_PostedFile().FileName; }
So you can see, if Filenametype = 1 or 2, the filename will beequal to PostedFile().FileName, which will return the full fully-qualified name of the file on the client's computer, It will be appreciated if you can fix this bug in the next version.