Check for original_filename instead of path
Check for original_filename instead of path

If we check for original filename instead of path both StringIOs from
fileupload.js and ActionDispatch::Http::UploadedFile can be handled
succesfully.

leonidas/qa-reports,leonidas/qa-reports,leonidas/qa-reports