|
|
Rank: Newbie
Groups: Registered
Joined: 7/8/2011 Posts: 4
|
Howdy -
I'm using the Slick sample for 6.1.1 and would like to limit uploads to image files only.
What is the easiest way to implement this?
I tried - using slickUpload.ValidExtensions as shown in the Validation example, but it seems that doesn't work for UploadConnectors.
Please advise.
|
|
|
Rank: Administration

Groups: Administrators
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
This should work. Are you seeing an error? The ValidExtensions property will show the validation, but it won't actually keep the upload from happening at this point -- you'll need to add javascript to whatever validation framework you're using to do that. See the Validation sample for an example of doing this with the builtin ASP.NET validators.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/29/2012 Posts: 1 Location: London
|
Actually I have the same problem; the property 'ValidExtensions' can be set in code behind (c#) for <kw:SlickUpload Id="slickUpload" ... but not for <kw:UploadConnector Id="slickUpload"... It simply doesn exist as a property where one cn set or change the value.
Why would I want do this ? Well, I'm trying to combine the 'slick' look with 'validation'. Solutions ?
|
|
|
Rank: Administration

Groups: Administrators
Joined: 7/7/2005 Posts: 1,586 Location: Scottsdale, AZ
|
The ValidExtensions property is actually part of the FileSelector control, not the UploadConnector control.
|
|
|
|
Guest |