Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 215
Kirill Vlasov Avatar asked Nov 22 '25 22:11

Kirill Vlasov


1 Answers

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?

like image 100
Takashi Matsuo Avatar answered Nov 24 '25 21:11

Takashi Matsuo