ok, got two problems in one post here because they are both related to the image upload feature in Dynamic Registration.
First is the Event validation setting that is enabled in DNN 5.6.3 and up. This is an important security feature and should remain enabled, however the image upload feature of this module fails to work when it is.
You can see this error occur when you upload an image on the test form I created here on betasprings:
http://www.betasprings.com/DynRegis...fault.aspxIt is not appropriate to disable event validation so this should really be fixed in a proper way. To quote Microsoft: "This feature reduces the risk of unauthorized or malicious postback requests and callbacks. It is strongly recommended that you do not disable event validation."
The second issue I'm reporting is that the "AttachFiles" token doesn't appear to be working.
If you first disable event validation on the web.config on betasprings so that the test form linked above works, then you will be able to upload an image to it. If you also change the email completion event address to your own address, then you'll find the resulting email has no attachment.
So, those are the issues:
1.Form needs to work with event validation enabled
2.AttachFiles token doesn't attach image file
These issues may very well also occur in Dynamic forms. I suggest checking that module as well.
Actually.. there's something else odd with the image attachment field. I very often find that the form presents the field as an empty textbox with the Browse button alongside, and the "upload new file" link underneath.
I'm seeing this right now on the form I created on Betasprings. If a file is now selected via the browse button, it will not upload or update the image. The form shouldn't normally ever display like that. It should only ever display the browse box after the upload link has been clicked. This may very well be happening because the event validation issue breaks the process.
Regards
Rob