added file size check for uploads on the frontend