0
votes
votes
1 answers
Checking a filesize limit?
I want to make sure when a user selects a file, that it does not exceed 10 meg. I have: int _maxFileSize = 10240; OpenFileDialog dlg = new OpenFileDialog(); if ((bool)dlg.ShowDialog()) { if (dlg.File.Length > _maxFileSi ...
