Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

wildcard_path_match? question #19

Closed
balauru opened this Issue · 1 comment

2 participants

@balauru

Hi,

I am trying to filter paths like:
/articole/test-4f663e6d8cb2432583000055/imagini

With:
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?

Thanks,

@pablobm
Owner

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']
@pablobm pablobm closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.