Cannot load the .AWD file from my database to my stage

Software: Away3D 4.x

Richard Olsson, Administrator
Posted: 31 July 2012 09:19 AM   Total Posts: 1192   [ # 31 ]

That’s the request headers. They can be interesting, but most importantly you need to share the response headers, so that we can figure out whether the file is being returned the way you expect it to be.

   

Josh, Newbie
Posted: 31 July 2012 09:33 AM   Total Posts: 24   [ # 32 ]

Hi Richard,

This is the only response headers:

HTTP/1.1 206 Partial Content

Last-Modified: Tue, 31 Jul 2012 03:55:42 GMT

Content-Type: text/plain

Content-Range: bytes 2048-2048/5381702

Content-Length: 1

Server: WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)

Date: Tue, 31 Jul 2012 09:21:05 GMT

Connection: Keep-Alive

Regards,
Josh

 

 

 

 

   

Richard Olsson, Administrator
Posted: 31 July 2012 09:36 AM   Total Posts: 1192   [ # 33 ]

I see. That looks incorrect. First of all, it’s returning “206 Partial content”, which is kind of odd if it’s just a single, full file. Second, it states that the content is text/plain.

When you browse to that URL, do you actually get an AWD file back, with the same size as the AWD file you uploaded to your server?

I’m thinking that the issue might be that your server is incorrectly configured to be able to transfer AWD files. Make sure that the *.awd extension is listed in your supported extensions, which is done differently depending on what server software you are using.

If you are using Apache, look at the following example of how it can be solved for PDF files, and do the same but with the “AWD” file suffix instead of “PDF”: http://wiki.joyent.com/display/gen/Configuring+MIME+Types+in+.htaccess

   

Josh, Newbie
Posted: 31 July 2012 09:43 AM   Total Posts: 24   [ # 34 ]

Hi Richard,

  Thank you for your reply. I will read first the link you gave to me.

Regards,
Josh

   

Josh, Newbie
Posted: 31 July 2012 09:47 AM   Total Posts: 24   [ # 35 ]

Hi Richard,

By the way, you do have link like the first link you gave to me for ruby on rails?


Regards,
Josh

   

Josh, Newbie
Posted: 02 August 2012 03:43 AM   Total Posts: 24   [ # 36 ]

Hi Richard,

    The return content type of my AWD file is already “application/octet-stream”. But still the result. It cannot appear in my stage the AWD file that store in server.
    I get the same file size when i uploaded to my server.


Regards,
Josh

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X