I'm looking for solution where I can prevent upload of some sort of videos, for that I need a way to grab video width/height via JS before file is being uploaded at all. Do we have such a mechanism or server side is the only way to go?
            Asked
            
        
        
            Active
            
        
            Viewed 1,597 times
        
    1
            
            
        - 
                    Are you using `file-reader` ? – Rayon Nov 02 '15 at 12:14
- 
                    I use plupload at the moment. – vaske Nov 02 '15 at 12:16
- 
                    Have a look at this post: http://stackoverflow.com/questions/4129102/html5-video-dimensions – Mathijs Nov 02 '15 at 12:16
- 
                    @MathijsVandenWorm, For that, you need video element to be there in DOM – Rayon Nov 02 '15 at 12:17
- 
                    yeah I sow that one, idea is to check is video low quality before upload, before I send files to server. – vaske Nov 02 '15 at 12:19
- 
                    1@vaske, I would preview video element using some absolute positioned hidden container and I could read the width and height using link provided above! – Rayon Nov 02 '15 at 12:21
- 
                    @RayonDabre sounds interesting will try that approach. – vaske Nov 02 '15 at 12:21
