This is my PHP code which uploads the image from a html form.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Upload a Photograph</title>
<link rel="stylesheet" href="uploadify.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
<!--
function breakout_of_frame()
{
// see http://www.thesitewizard.com/archive/framebreak.shtml
// for an explanation of this script and how to use it on your
// own website
if (top.location != location) {
top.location.href = "http:/noltest.lib.siu.edu/drupal/blincore?file='"+fileObj.name+"'" ;
}
}
-->
</script>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery.uploadify.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#fileUpload").fileUpload({
'uploader': 'uploader.swf',
'cancelImg': 'cancel.png',
'script': 'upload.php',
'folder': 'downloads',
'fileDesc': 'Image Files',
'fileExt': '*.jpeg,*.jpg,*.tif,*.tiff,*.gif,*.png',
'checkScript': 'check.php',
'multi': false,
'displayData': 'speed',
'onComplete': function(event, queueID, fileObj, response, data) {
$('#filesUploaded').append
('One Image Uploaded successfully (<a href='+fileObj.filePath+'>'+fileObj.name+'</a>)</br></br> <FORM METHOD=POST ACTION="http://nol.lib.siu.edu/drupal/dublincore"> <INPUT NAME=filename value="'+fileObj.name+'"> <INPUT TYPE=submit VALUE="NEXT" ></FORM ><br>');}
});
});
</script>
</head>
<body style="background: #f1ede0 url(http://nol.lib.siu.edu//sites/all/themes/admire_grunge/images/bg2.jpg) repeat fixed top center;">
<h2>Single Photograph Upload</h2>
<div id="fileUpload">Issue with your javascript</div>
<a href="javascript:$('#fileUpload').fileUploadStart()">Start Upload</a> | <a href="javascript:$('#fileUpload').fileUploadClearQueue()">Clear Queue</a>
<p></p> <p><div id="filesUploaded"></div></p>
</body>
</html>
problem: when i try to upload image from the desktop which contains image named (test.jpg) , this test.jpg is not shown when browsing to select the image file.
any advice...