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
download. From looking at the upload workflow, it seems the headers are
being determined by MediaHandler::getStreamHeaders when it's called from
LocalFile::upload().

However, upon inspecting the code for
MediaHandler::getStreamHeaders.....the entire function body is "return
array()". So, um, was this just never implemented, or am I missing
something.

*--*
*Tyler Romeo*
Stevens Institute of Technology, Class of 2015
Major in Computer Science
www.whizkidztech.com | [email protected]
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to