djangosnippets.org: Latest snippets tagged with 'filebrowser'https://djangosnippets.org/tags/filebrowser/2010-01-27T16:54:32.568948-06:00Unzip a .zip file uploaded with FileBrowser
2010-01-27T16:54:32.568948-06:00shackerhttps://djangosnippets.org/snippets/1893/<p>Django Filebrowser (http://code.google.com/p/django-filebrowser/) provides a signal called filebrowser_post_upload. Adding this method to a model that has a FileBrowse field will cause uploaded .zip files to be detected and unzipped on the server in place, then deleted (leaving their folder behind). It will also delete the garbage __MACOSX folder created by …</p>
Freely redistributableIntegrate Wymeditor with filebrowser plugin
2008-11-18T03:41:52.231997-06:00jonasvphttps://djangosnippets.org/snippets/1201/<p>In order to integrate Wymeditor with the Django filebrowser, put the code in a file, set the fb_url variable to point to your filebrowser instance and add the file to your Javascript headers:</p>
<p><script type="text/javascript" src="/media/wymeditor/plugins/jquery.wymeditor.filebrowser.js"></script></p>
<p>or in your admin.py:</p>
<p>class Media:
js = ('/media/wymeditor/plugins/jquery.wymeditor.filebrowser.js',)</p>
<p>Add the postInitDialog parameter to …</p>
Freely redistributable