removed a function since the one-liner is used only in one place
fix the bug of not reporting 100% file upload for files smaller than 1MB
upload non-blocking still allow only one upload at a time