Re: [Wikitech-l] MediaHandler Stream Headers

2013-03-04 Thread Aaron Schulz
Sounds like https://gerrit.wikimedia.org/r/#/c/41932/ -- View this message in context: http://wikimedia.7.n6.nabble.com/MediaHandler-Stream-Headers-tp4998162p4998308.html Sent from the Wikipedia Developers mailing list archive at Nabble.com. ___

Re: [Wikitech-l] MediaHandler Stream Headers

2013-03-04 Thread Tyler Romeo
Oh wow, that saves a lot of work. If that doesn't make it into core (which it really shouldn't), that patch would be gladly welcome in Extension:AWS. *--* *Tyler Romeo* Stevens Institute of Technology, Class of 2015 Major in Computer Science www.whizkidztech.com | tylerro...@gmail.com On Mon,

[Wikitech-l] MediaHandler Stream Headers

2013-03-03 Thread Tyler Romeo
Hey, So I'm working on making an S3 file backend for E:AWS, but I've run into an issue. FileBackend::doCreateInternal expects an array of options, one of those options should be an array of headers, e.g., Content-Type. Amazon S3 needs the Content-Type header, otherwise it just shows up as a file

Re: [Wikitech-l] MediaHandler Stream Headers

2013-03-03 Thread Brion Vibber
On Sun, Mar 3, 2013 at 5:07 AM, Tyler Romeo tylerro...@gmail.com wrote: Hey, So I'm working on making an S3 file backend for E:AWS, but I've run into an issue. FileBackend::doCreateInternal expects an array of options, one of those options should be an array of headers, e.g., Content-Type.

Re: [Wikitech-l] MediaHandler Stream Headers

2013-03-03 Thread Tyler Romeo
On Sun, Mar 3, 2013 at 4:37 PM, Brion Vibber br...@pobox.com wrote: For a File::upload() implementation I think you'll want to grab $this-getMimeType() and send it as necessary. The only problem is that at that point I don't have a File object to use. When it gets to the FileBackend, it only