Hi, apologies if I have posted this to the wrong forum, however i am very new to umbraco and wasnt sure where i should post this.
Basically i have created a custom media type, that takes a file upload and a title, have called this new media type downloadable file. I would like to display the file size and am not sure how i could do this. Ideally like the built in Media types (File) i would like to have a property called (fileSize) that is type Label, but am unsure how to go about populating this.
Question about custom media type
Hi, apologies if I have posted this to the wrong forum, however i am very new to umbraco and wasnt sure where i should post this.
Basically i have created a custom media type, that takes a file upload and a title, have called this new media type downloadable file. I would like to display the file size and am not sure how i could do this. Ideally like the built in Media types (File) i would like to have a property called (fileSize) that is type Label, but am unsure how to go about populating this.
Thanks in advance
If this new media type has the upload field as one property just add the following properties to your media type:
The values should be filled in automatically by the uploadField datatype...
hth, Thomas
Forgot to mention that all properties should be from type Label. Just as they are in the original Image or File Media Type
Thomas
Excellent that worked perfectly, thnak you very much
is working on a reply...