<p>Removed unnecessary if condition. Now all uploads are run through the checkFile function, which will catch empty uploads.</p>
<p>To check:<br>
1) Navigate to mesh profile page<br>
2) Click "upload" (do NOT attach a file first)<br>
3) The page should refresh with a warning that says "There does not seem to be a file here"</p>
<p>Rinse and repeat.</p>
<hr>
<h4>You can merge this Pull Request by running</h4>
<pre> git pull https://github.com/opentechinstitute/luci-commotion issue40</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/opentechinstitute/luci-commotion/pull/43'>https://github.com/opentechinstitute/luci-commotion/pull/43</a></p>
<h4>Commit Summary</h4>
<ul>
<li>removed unnecessary empty file condition. Now all uploads are run through the check File function, which will catch empty uploads.</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/opentechinstitute/luci-commotion/pull/43/files#diff-0">luasrc/controller/commotion/meshprofile.lua</a>
(10)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/opentechinstitute/luci-commotion/pull/43.patch'>https://github.com/opentechinstitute/luci-commotion/pull/43.patch</a></li>
<li><a href='https://github.com/opentechinstitute/luci-commotion/pull/43.diff'>https://github.com/opentechinstitute/luci-commotion/pull/43.diff</a></li>
</ul>