I am trying to filter paths like:
config.middleware.use 'Rack::RawUpload', :paths => ['/articole/.*/imagini']
This should normaly work with a regex but the wildcard_path_match? method is relacing the * any particulat reasons for this? Any other way I can achive the above?
OK, I see. That feature is intended for use with wildcards, not with regular expressions. This means that "blah.*" resolves to anything starting with "blah.", as opposed to anything starting with "blah". Think of it as bash filename wildcards.
In your example, you sould be using the following line:
config.middleware.use 'Rack::RawUpload', :paths => ['/articole/*/imagini']