As upload is a regular expression that matches files being uploaded to static vault, the following app.yaml handler should work with 'static/images/jpg' directory only, shouldn't it?
- url: /images/(.*?)\.(jpg|png)
static_files: static/images/\2/data.\2
upload: static/images/jpg/(.*)
Both requests receive file data from server though 'static/images/jpg' is the only value for upload directive:
wget http://application_url/images/data.jpg
wget http: //application_url/images/data.png
Could you please describe the correct meaning of upload directive?
shouldn't it?
Yes it should.
Could you please describe the correct meaning of upload directive?
Your understanding is correct, but something wrong is happening. I tried to reproduce this issue, but got no luck yet. Can you run appcfg.py with --noisy option and check whether the png file is unintentionally processed or not?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With