SFBrowser is a file browser and uploader. It can replace the existing media library.
SFBrowser is a file browser and uploader. It can be used as an alternative for the existing media library. But it can also quite easily be used to support other plugins and/or extensions. Unlike the existing media library SFBrowser does not automatically store references to files in the database. So files uploaded through FTP are immediately visible.
You can set this plugin to override specific parts of the admin interface: mainly those parts that deal with the media library or parts that use an upload form. For the wysiwyg editor you can define how to insert different filetypes. These rules can be enhanced with the metadata of the file (like filesize, filetime or dimensions).
Using SFBrowser in your own plugin is actually quite easy. The only thing you need is a (hidden) input field, a button that calls up the SFBrowser, and some javascript. To call up SFBrowser you use this function: jQuery.sfb({ select: myCallbackFunction }); There are more variables you can parse but the 'select' is the important one. The callback function can look like this: var myCallbackFunction = function myCallbackFunction(files) { var oFile = files[0]; jQuery('input#selectedFile').val(oFile.file); jQuery('label#fileLabel').html(oFile.file+" "+oFile.size); } You can see from this function that the parsed variable is a list of objects. The propeties of those objects are described here.
If you have any ideas on how to improve this plugin post a message here.
Some improvements that are on the todo list are:
Requires: 3.1 or higher
Compatible up to: 3.1.4
Last Updated: 2010-11-21
Downloads: 2,288
Got something to say? Need help?