You can specify the MIME type manually with the mime_type option in
app.yaml.  For example:
- url: /silverlight/(.*\.xaml)
  static_files: silverlight/\1
  mime_type: application/xaml+xml

(I didn't test this, so let me know how it goes.  :) )

-- Dan

On Fri, Nov 7, 2008 at 4:41 AM, Neo42 <[EMAIL PROTECTED]> wrote:

>
> How do I use the upload tool (appcfg.py) and my app.yaml file to
> upload .XAML (silverlight) files?
>
>
> Here are the handlers in my yaml:
> handlers:
> - url: /stylesheets
>  static_dir: stylesheets
>
> - url: /silverlight
>  static_dir: silverlight
>
> - url: /.*
>  script: helloworld.py
>
>
>
> My xaml and such is in the silverlight directory.  My appcfg.py
> command is:
> appcfg.py  update  C:\GoogleAppsProjects\HelloWorld
>
>
> When I try to do it I get this:
> "Could not guess mimetype for silverlight/scene.xaml.  Using
> application/octet-stream."
>
>
>
> And the uploaded xaml file doesn't work.  By the way, the localhost
> version of the app runs fine.  It's the upload tool that is screwing
> something up.
>
>
> I can't figure out how to do it from this page:
>
> http://code.google.com/appengine/docs/configuringanapp.html#Static_File_Handlers
>
>
>
> I'm new to python.  Please help.  I suppose I could try to put my xaml
> code in the html code, but I'd prefer not to.
>
> Thanks.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to