i'm storing flash files (.swf) in a FileSystem container with access control. When the link for the file is rendered, it looks like /system/storage/serve/10/ants_reading_interface.swf. The problem is that when the flash player requests this file the server is sending response headers containing Content-Disposition: attachment; filename="ants_reading_interface.swf" where the flash player is expecting the actual data to be sent (Content-Length: xxxxxx). This does not happen if I use a FileSystem container (meaning the correct response headers are sent) or if I use drupal's Private Files upload destination.

Do you guys know how I can change this behavior?

Thank you

SergSD

Comments

Perignon’s picture

At the moment, I do not know a way of changing this. This is a fairly obscure use case as most video players on Drupal use Libraries module to load the SWF file and associated JS files. This may very well not be compatible to be used with the Flash player.

SergFromSD’s picture

Thanks Perignon, I understand. The problem I have is that i'm using flash files with embedded action script (.swf) instead of just video files (.flv) so i think I'm stuck using adobe's flash player.

The problem is that starting with version 10,0,2, if Flash Player sees a "Content-Disposition: attachment" header while downloading a SWF file, it will ignore the SWF file rather than play it. I haven't really been able to discover a workable solution to this. For S3 I was able to change the content disposition header from "Content-Disposition: attachment;" to "Content-Disposition: inline" using metadata on my bucket in the AWS console. Is there a way I could do something similar here, even if I just patch the code myself?

Thanks again

jonhattan’s picture

Version: 7.x-1.6 » 7.x-1.x-dev
Status: Active » Closed (duplicate)
Related issues: +#1933774: No need to force Content-Disposition header.