Jagr
-
3/31/2009 5:14:41 AM
RE:BizForms file upload issue
Hi Miroslav,
Again, thanks a lot for your reply. It was really helpful to me, and you gave me the idea how to solve my problem.
I just want to make a few notes here.
I tried with CMS.ExtendedControls.CMSFileUpload control just like suggested in that KB article, but the control could not be found. Then I tried with CMS.ExtendedControls.Uploader and it worked fine. Then I suppose that this control is used for BizForms file upload and not CMSFileUploaded.
Uploader also have a property PostedFile so I used it for my problem.
Second thing that I wanted to express here is that I couldn't use this solution in OnAfterSave event, because then, BizForm is already cleared and I couldn't get the value of the PostedFile property. I was getting an error "object not set to an instance of an object".
I changed my architecture a bit and used this solution in OnBeforeSave event, and my problem was solved.
Actually it really doesn't matter to me if it is going to be done before or after saving BizForm. It is only important that it is done properly.
Anyway, again, thank you very much for help.
Cheers :)
|