Kirill Vlasov
Kirill Vlasov

Reputation: 56

google appengine 'upload' directive won't work as expected

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?

Upvotes: 3

Views: 171

Answers (1)

Takashi Matsuo
Takashi Matsuo

Reputation: 3436

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?

Upvotes: 1

Related Questions