MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Upload feature (Closed) (Mono Support )

Viewed 10035 time(s), 4 post(s) 3/4/2012 2:06:38 AMby Mony11
Mony11

Mony11

3/4/2012 2:06:38 AM
I saw two places where user can upload a document or file (Discussion board and Wall).

How can we enable white-list files extensions to be allowed for upload?

For example, I would like to allow only pdf or word documents. Also, the file size should not exceed 10MB

If there is no easy way to set such a policy, how can I disable this feature?
This content has not been rated yet. 
42 Reputation 4 Total posts
khorvat

khorvat

3/4/2012 11:22:11 AM
Hi,

you can change these options globally in the web.config by setting the UploadAllowedFileExtensions and the following
<add key="MonoXMaxImageSize" value="5242880" />
<add key="MonoXMaxFlashSize" value="204800" />
<add key="MonoXMaxMediaSize" value="5242880" />
<add key="MonoXMaxDocumentSize" value="5242880" />
<add key="MonoXMaxTemplateSize" value="204800" />

You can also set these settings on the module level - discussion or wall.

Let us know if you need more information on this.

Regards
Rated 5.00, 1 vote(s). 
15993 Reputation 2214 Total posts
Mony11

Mony11

3/4/2012 11:20:28 PM
I would like to disable file upload at wall level
This content has not been rated yet. 
42 Reputation 4 Total posts
mzilic

mzilic

3/5/2012 1:55:00 PM
You can easily disable file upload by opening Wall.aspx page and setting AllowFileUpload property to false.

Example can be seen below:
    
<MonoX:Wall runat="server" ID="snWallNotes" UsePrettyPhoto="true" ShowRating="false" GravatarRenderType="NotSet" AllowFileUpload="false"  />  


Regards
Rated 5.00, 1 vote(s). 
2218 Reputation 300 Total posts