Quote from: mattcdavis1 at May 13, 2010, 09:46 AM
Any ideas on how I might further troubleshoot this issue? Does anyone currently have Static Resources working correctly (i.e. can use it to download .mp3, .pdf or .flv) for rev6748 or above?
-matt
I have a static resource (.JS) working fine on RC-1 (rev6614), but when I first tried linking to an MP3, I received the following:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4512403 bytes) in /Sites/modx/revolution/core/model/modx/modparser.class.php on line 68
NOTE: That was using an "application/octet" mime-type for .mp3 ...also, I noticed that even though I checked "Binary" during the setup, that it was not defined as binary when I revisited the Content Types section. I changed the mime-type to audio/mpeg and re-checked binary, and it worked great! (Unfortunately, this does not address your "rev6748 or above" question...)
Also, my file came through as I would have expected: static1.mp3 (Actual static file name is much longer...)
HTTP/1.1 200 OK
Date Thu, 13 May 2010 23:35:02 GMT
Server Apache/2.2.12 (Unix) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By PHP/5.3.0
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control public
Pragma no-cache
Content-Disposition attachment; filename=static1.mp3
Vary User-Agent
Content-Transfer-Encoding binary
Content-Length 6513516
Keep-Alive timeout=5, max=99
Connection Keep-Alive
Content-Type audio/mpeg
FWIW, I tried installing rev6807 from SVN, but it failed during the install (Also, I could not Upgrade, as it only allowed the "New Installation" option, but that’s probably for another thread...)
@OpenGeek, thx for the HttpFox reference, very slick!
@matt, out of curiousity does your experience change if you give the static resource an Alias? (Are you using Friendly-URLs?)