Developer forum

Forum » Development » Set BaseDirectory and Extensions on Items

Set BaseDirectory and Extensions on Items

Anders Ebdrup
Reply

Hello Dw,

 

How can we set BaseDirectory and allowed Extentions on a item field when using the "Code first" approach?

 

Best regards, Anders


Replies

 
Vladimir
Reply
This post has been marked as an answer

Hi Anders,

it should be possible:

[File("Logo", "/Images/Articles", "gif,jpg,png")]

public string LogoImage { get; set; }

Best regards,

Vladimir

Votes for this answer: 1

 

You must be logged in to post in the forum