GcMedia version 1.0beta (release date: 2009-02-24)

About

This is a server side file browser plug-in for jQuery. Purpose is simple - you have some files on your server, and you have some input fields, where you want user to input URL of one of those files. This could come handy for CMS development or some social networking site.

Attention! since there is a bug in jQuery UI dialog widget - dialog does not show up in IE7 (and i think also in IE6). The bug has been fixed in the trunk, so in final version of jQuery UI 1.6/1.7 the plug-in will work in IE.

Download

Demo

Coming soon

Requirements

Options explained

Backends

Most of operations are performed via HTTP POST, with variable "task".

Directory backend task values:
'create-directory', 'rename-directory', 'delete-directory'

File backend task values are:
'rename-file', 'delete-file'

Also there is HTTP GET parameter for directory backend called 'get-directory-tree', which must return <option value="$directory_url">$directory_name</option> tags in plain text.

For file upload the same IFrame is used and it should accept all the form fields for further operation on file upload. Like: 'directory-list' field for seting target directory and 'upload-file' as the uploaded file source.

Usage

$('input.file').gcmedia({
	backendFileURI: '/path/to/backend/backend.file.php',
	backendDirectoryURI: '/path/to/backend/backend.dir.php',
});
			

Change Log

ToDo

Valid XHTML 1.0 Strict Valid CSS!