I am building secure web application using Ruby on Rails which scans
virus in uploaded file.
Now Currently I can access the tempfile from the
ActionDispatch::Http::UploadedFile instance which Rails creates for
uploaded file and complete scan successfully.
But I want to avoid Rails creating the tempfile as I fear once the virus
affected file stored in tempfile this may infect the system.
What my question is:
- Is there any way to tell Rails that ‘Generate the IO stream
instance(string) instead of Tempfile’ ?*
If Rails gives file as IO stream I can use this stream to scan for
If something asked fundamentally wrong give me your suggestion.