validate file size before upload

Signed-off-by: Blaise Fonseca <blaisefonseca@hotmail.com>