To allow uploadify uploading files to server the the permissions on uploadify.php to 777.
chmod 777 uploadify.php
Embedding uploadify into the head could look like that:
<link href="bibtexbrowser.css" type="text/css" rel="stylesheet" />
<link href="uploadify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript">
function createUploader(){
$("#file_upload").uploadify({
"uploader" : "/typo3conf/ext/bibtexbrowser/mod1/uploadify/uploadify.swf",
"script" : "/typo3conf/ext/bibtexbrowser/mod1/uploadify/uploadify.php",
"cancelImg" : "/typo3conf/ext/bibtexbrowser/mod1/uploadify/cancel.png",
"folder" : "/root/relative/upload/path/to/dir/",
"fileExt" : "*.bib;",
"fileDesc" : "Bibtex biles with .bib extension",
"buttonText": "Upload a bib file",
"auto" : true
});
}
window.onload = createUploader;
</script>
And the html code could look like that
<input id="file_upload" name="file_upload" type="file" />