Monday, October 5, 2015

Establecer mime type para subir mp3 a Google App Engine/Google Cloud Platform

Hay que agregar al archivo app.yaml por ejemplo si tenemos una carpeta que se llama sound

- url: /sound
  static_dir: sound
  mime_type: audio/mpeg

Dejo un ejemplo completo de archivo yaml. Cualquier cosa no dudes en comentar. Saludos!

application: lecturarapida-1090
version: 1
runtime: php55
api_version: 1
threadsafe: yes

handlers:
- url: /js
  static_dir: js

- url: /css
  static_dir: css

- url: /bootstrap/css
  static_dir: bootstrap/css

- url: /bootstrap/js
  static_dir: bootstrap/js

- url: /sound
  static_dir: sound
  mime_type: audio/mpeg

- url: /test
  static_dir: test

- url: /img
  static_dir: img

- url: /favicon\.ico
  static_files: favicon.ico
  upload: favicon\.ico

- url: .*
  script: index.php

No comments:

Post a Comment