Thanks Anuruddha On Thu, Oct 9, 2014 at 5:35 PM, Anuruddha Premalal <[email protected]> wrote:
> Hi Niranda, > > If it's a security concern in restricting the uploadable thumbnail type, > you should filter the types from the server side as well. > > IMO This should actually come as a fix in the next release. > > For now you can replace the following file with the attached file. > > > <AM_HOME>/repository/deployment/server/jaggeryapps/publisher/site/blocks/item-design/ajax/add.jag > > Also the diff file relevant to the change is attached herewith. > > > On Thu, Oct 9, 2014 at 11:20 AM, Niranda Perera <[email protected]> wrote: > >> Hi Dinesh, >> >> Thank you for your input. It was indeed very helpful. :-) >> >> Cheers >> >> On Thu, Oct 9, 2014 at 10:16 AM, Dinesh J Weerakkody <[email protected]> >> wrote: >> >>> Hi Niranda, >>> >>> modern browsers support accept attribute and explain in this >>> stackoverflow tread [1]. If that doesn't work for you, you have to write a >>> custom js for validation. >>> Sample validation can be found here [2]. >>> >>> [1] >>> http://stackoverflow.com/questions/3521122/html-input-type-file-apply-a-filter >>> [2] >>> http://www.codeproject.com/Tips/700593/FileUpload-Filter-File-Type-File-Extension-File-Si >>> >>> >>> On Wed, Oct 8, 2014 at 5:48 PM, Niranda Perera <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> Is there any way to restrict only files of certain file types to be >>>> uploaded in the API thumbnail image section in APIM? >>>> >>>> Rgds >>>> >>>> >>>> -- >>>> *Niranda Perera* >>>> Software Engineer, WSO2 Inc. >>>> Mobile: +94-71-554-8430 >>>> Twitter: @n1r44 <https://twitter.com/N1R44> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> >>> *Dinesh J. Weerakkody* >>> Software Engineer >>> WSO2 Inc. >>> lean | enterprise | middleware >>> M : +94 727 361788 | E : [email protected] | W : www.wso2.com >>> >> >> >> >> -- >> *Niranda Perera* >> Software Engineer, WSO2 Inc. >> Mobile: +94-71-554-8430 >> Twitter: @n1r44 <https://twitter.com/N1R44> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Anuruddha Premalal* > Software Eng. | WSO2 Inc. > Mobile : +94710461070 > Web site : www.regilandvalley.com > > -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 <https://twitter.com/N1R44>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
