Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to check extension of choosing picture in SP 2013 Picture Library

$
0
0
Hi, 

I need to check pictures extension when user has chosen picture and try to upload it into picture library.

I've found the way to edit master page with js script, but i haven't to edit master page. Then i try to use event receiver Adding, but it can't get the name of file or file path. I used:

var file = properties.ListItem.File.Name;//properties.ListItem - returns null

AfterProperties also returns null.

The another way i see is to edit Adding Picture form with js:

I think is's simplest way but i can't found information about it.

Problem: how to set js script to the form (see picture) or how to do such actions with another way



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>