google-app-engine - google appengine 'upload' 指令无法按预期工作

标签 google-app-engine yaml

由于 upload 是匹配上传到静态库的文件的正则表达式,因此以下 app.yaml 处理程序应该仅适用于 'static/images/jpg' 目录,不应该吗?

- url: /images/(.*?)\.(jpg|png)          
  static_files: static/images/\2/data.\2          
  upload: static/images/jpg/(.*)                     

尽管 'static/images/jpg' 是上传指令的唯一值,但两个请求都从服务器接收文件数据:

 wget http://application_url/images/data.jpg
 wget http: //application_url/images/data.png

能否请您描述一下上传指令的正确含义?

最佳答案

shouldn't it?

是的,它应该。

Could you please describe the correct meaning of upload directive?

你的理解是正确的,但是有问题发生了。我试图重现这个问题,但还没有成功。您可以使用 --noisy 选项运行 appcfg.py 并检查 png 文件是否被无意中处理了吗?

关于google-app-engine - google appengine 'upload' 指令无法按预期工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8513774/

相关文章:

postgresql - 将测试和开发应用程序版本部署到 Google Compute Platform 的最佳策略

java - 如何在 Eclipse 中删除 Maven 依赖 jar

symfony - 如何在 Sonata admin 中为 yaml 配置实现 gui?

html - 如何在 Azure DevOps 中将图像居中

java - App Engine Java 单元测试环境设置

google-app-engine - GAE Cloud Endpoints API Explorer 停止工作

kubernetes - 使用列表或三重破折号将多个 Kubernetes 对象放入一个 YAML 文件 : purely a stylistic choice?

ruby - 当我用 Ruby 解析 YAML 时,它改变了我的 anchor 名称

java - AppEngine 数据存储 : storing list of strings with more than 500 characters

symfony - 仅为 Symfony2 中的开发环境禁用 CSRF