avoid copying the uploaded file to temp folder. directly reading content in memory