Fix OutOfMemoryError with large uploaded file