Checking only the first 3 bytes for magic mime instead of 4.
Wait before file is completely downloaded before starting processing
Reverted back to start processing the stream as soon as it is available.