UocFileDownload Control on RCDCs
Hi There, Okay, I'm toying around with an idea and wanted to start to use the UocFileDownload control. I have a binary file which I'm looking to upload into the FIM Service that users can later download as a read only attribute. The problem is that the system keeps appending a ".txt" to the suggested filename so the PDF file won't actually open using Acrobat. So in the example control, the "Report.pdf" shows up as "Report.pdf.txt" when the open/save/cancel dialog appears. However, if you click on "Save" on the dialog, the filename is passed along correctly as "Report.pdf" however, the file type is reported as Text. The control is formatted using the exact configuration from the RCDC Configuration Guide except that I've changed the content type to "binary": <my:Control my:Name="SampleDynamicFileDownloadControl" my:TypeName="UocFileDownload" my:Caption="{Binding Source=schema, Path=ABinaryAttribute.DisplayName, Mode=OneWay}" my:Description="{Binding Source=schema, Path=ABinaryAttribute.Description, Mode=OneWay}" my:RightsLevel="{Binding Source=rights, Path=ABinaryAttribute}"> <my:Properties> <my:Property my:Name="Text" my:Value="Group Usage Report"/> <my:Property my:Name="PromptedFileName" my:Value="Report.pdf"/> <my:Property my:Name="ContentType" my:Value="binary"/> <my:Property my:Name="Value" my:Value="{Binding Source=object, Path=ABinaryAttribute}"/> </my:Properties> </my:Control> Note that in the "ContentType" property, I have also used "Binary" as is case similar to the example given in the UocFileUpload control immediately following it in the RCDC configuration guide. Suggestions? Thanks B
May 10th, 2011 8:01pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics