Indicates whether or not to allow storing duplicate file names...
Indicates whether or not to allow storing duplicate file names... default value is true
Remove file if it is infected...
Remove file if it is infected... defaults value is true
Remove file if an error occurred during scanning...
Remove file if an error occurred during scanning... defaults to true, but will be overridden and set to false if shouldFailOnError = false
Convenience function for retrieving the actual FilePart from the request, after scanning and saving has been completed.
Convenience function for retrieving the actual FilePart from the request, after scanning and saving has been completed.
Since the scan results have been validated as part of the parsing, we can be sure that the it passed through successfully.
Gets a body parser that will save a file, with specified metadata and filename, sent with multipart/form-data into the given GridFS store.
Gets a body parser that will save a file, with specified metadata and filename, sent with multipart/form-data into the given GridFS store.
First the stream is sent to both the ClamScan Iteratee and the GridFS Iteratee using Enumeratee.zip. Then, when both Iteratees are done and none of them ended up in an Error state, the response is validated to check for the presence of a ClamError. If this is found in the result, the file is removed from GridFS and a JSON Result is returned.
S => Structure R => Reader W => Writer Id => extends BSONValue
Scans file for virus and buffers to a temporary file.
Scans file for virus and buffers to a temporary file. Temp file is removed if file is infected.
Disables all virus scanning...
Disables all virus scanning... defaults to false
Mostly for convenience this.
Mostly for convenience this. If you need a service for just scanning a file for infections, this is it.
Whether or not to cause the body parser to stop uploading if we cannot connect to clamd...
Whether or not to cause the body parser to stop uploading if we cannot connect to clamd... defaults to false
Allows defining a regular expression to validate filenames for illegal characters.
Allows defining a regular expression to validate filenames for illegal characters. A good one could e.g. be:
(.[\"\*\\\>\<\?\/\:\|].)|(.[\.]?.[\.]$)|(.*[ ]+$)
Enables streaming upload of files/attachments with custom metadata to GridFS