add server-side filesize check on uploads
Merge pull request #1245 from ZogStriP/server-side-file-size-check

add server-side filesize check on uploads