<p>I want to serve a lot of big files in a Plone site. By big files I mean around 5MB (music) and a lot of them. I've already do it straight to the ZODB, not a good idea. I'm running Plone 3.1.1 and Zope 2.10.6.</p>

[{'answer_id': 65117, 'author': 'Erik Forsberg', 'author_id': 8675, 'author_profile': 'https://Stackoverflow.com/users/8675', 'pm_score': 1, 'selected': False, 'text': '<p>As you may already know, the long-term solution for this is supposed to be the ZODB BLOB support. <a href="http://dev.plone.org/plone/ticket/6805" rel="nofollow noreferrer">Ticket 6805</a> is probably the most authorative source on this. Unfortunately, the milestone is set to 4.0, and running it in production on an older release is perhaps not a good solution.</p>\n\n<p>There has, historically, existed a lot of Plone products for storing files externally, keeping only metadata in the ZODB. I have tried several of them, and from my experience, there is not a single one that works well with current Plone/Zope releases. Don\'t trust me on this, though, I have not tried any products of this type the last year or so.</p>\n\n<p>Personally, I would go for a solution that is as simple as possible and doesn\'t involve Plone more than neccesary. Storing the music files on disk, serving them directly from apache/whatever web server you use, keeping only metadata in Plone - in a product you write yourself, will give you a robust solution with good performance. That is, your product should produce links to a path on your web server where the music files are available. </p>\n\n<p>If you require authorization for download of the music files and assuming that you run lighthttpd or apache in front of your Zope, looking at a solution based on X-sendfile is probably the best option. With X-sendfile, you keep the files on disk, and add a header (X-sendfile) to the response when a music file should be sent to the client browser. The web server will pick this header up and send the file to the client, without Plone being involved.</p>\n\n<p>Some pointers: </p>\n\n<ul>\n<li><p><a href="http://tn123.ath.cx/mod_xsendfile/" rel="nofollow noreferrer">http://tn123.ath.cx/mod_xsendfile/</a> (The apache module)</p></li>\n<li><p><a href="http://john.guen.in/past/2007/4/17/send_files_faster_with_xsendfile/" rel="nofollow noreferrer">http://john.guen.in/past/2007/4/17/send_files_faster_with_xsendfile/</a> (Ruby example)</p></li>\n</ul>\n'}, {'answer_id': 65803, 'author': 'Reinout van Rees', 'author_id': 27401, 'author_profile': 'https://Stackoverflow.com/users/27401', 'pm_score': 3, 'selected': False, 'text': '<p>Zodb blob support is the best, most integrated way to deal with large files. Big files are stored transparently on the filesytem instead of in the zodb object database. "Transparently" in this case means that you won\'t notice it in your actual programming work after initial configuration.</p>\n\n<p>The blob functionality has been backported to current (halfway 2008) zope versions and can be used in plone 3. Use plone.app.blob in your project for this: <a href="http://plone.org/products/plone.app.blob" rel="noreferrer">http://plone.org/products/plone.app.blob</a>.</p>\n'}, {'answer_id': 68239, 'author': 'limi', 'author_id': 10591, 'author_profile': 'https://Stackoverflow.com/users/10591', 'pm_score': 3, 'selected': False, 'text': '<p>Yeah, you shouldn\'t use anything else than the ZODB BLOB support at this point. It works fine with the 3.x series of releases.</p>\n\n<p><a href="http://dev.plone.org/plone/ticket/6805" rel="noreferrer" title="Ticket 6805">More information in ticket #6805</a></p>\n\n<p>— Alexander Limi, Plone co-founder</p>\n'}, {'answer_id': 294704, 'author': 'Graham Perrin', 'author_id': 38108, 'author_profile': 'https://Stackoverflow.com/users/38108', 'pm_score': 0, 'selected': False, 'text': '<p>I have plone.app.blob installed on some low-traffic sites and installable (ready to roll, if you like) for my busier production sites in the same instance.</p>\n\n<p>There\'s the 4.0 milestone but I\'ll certainly review (and probably click the install button for plone.app.blob on my production sites) around 3.4 time. </p>\n\n<p>A couple of references: </p>\n\n<p><a href="http://n2.nabble.com/PLIPs-I%27d-love-to-see-for-Plone-3.3-tp1123218p1130015.html" rel="nofollow noreferrer">http://n2.nabble.com/PLIPs-I%27d-love-to-see-for-Plone-3.3-tp1123218p1130015.html</a></p>\n\n<p><a href="http://dev.plone.org/plone/ticket/8629#comment:2" rel="nofollow noreferrer">http://dev.plone.org/plone/ticket/8629#comment:2</a> highlight</p>\n\n<blockquote>\n  <p>…\xa03.4, when we\'ll probably have blob filestorage specification\n  support added to plone.recipe.zeoserver and zope2instance. That will\n  give us a standard location for whatever owner/permission fixups the\n  installers need to make.</p>\n</blockquote>\n\n<p>In context: I\'m playing <em>roughly</em> with plone.app.blob and a very mixed bag of other add-on products with versions 3.1.7 and 3.2a1 of Plone based on standard and experimental installers. In these environments, <em>without</em> me treating things with kid gloves, Plone sies behave remarkably well and when (as expected) experiments lead to oddities, the support from the community is paced and proper.</p>\n'}, {'answer_id': 294711, 'author': 'Graham Perrin', 'author_id': 38108, 'author_profile': 'https://Stackoverflow.com/users/38108', 'pm_score': 2, 'selected': False, 'text': '<p>Clarifying, to the best of my knowledge: </p>\n\n<ul>\n<li><p>from various candidate technologies in a PLIP (Plone Immprovement Proposal), plone.app.blob is the lead contender with widespread support</p>\n\n<p>-- for exceptional use cases, we sometimes find something other than BLOBs recommended</p></li>\n<li><p>4.0 is currently the most likely milestone for plone.app.blob to become a product within Plone core</p></li>\n<li><p>in the meantime plone.app.blob is a recommended add-on product for current 3.x versions of Plone</p>\n\n<p>-- for use cases that suggest BLOB-like technologies.</p></li>\n</ul>\n'}]
['https://Stackoverflow.com/questions/64397', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6068/']