का उपयोग कर PHP फ़ाइल अपलोड अपलोड करें यदि कोई जानता है कि इस कोड के साथ समस्या क्या है।jquery post
असल में मैं jQuery
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(event) {
$('#form1').submit(function(event) {
event.preventDefault();
$.post('post.php',function(data){
$('#result').html(data);
});
});
});
</script>
</head>
<body>
<form id="form1">
<h3>Please input the XML:</h3>
<input id="file" type="file" name="file" /><br/>
<input id="submit" type="submit" value="Upload File"/>
</form>
<div id="result">call back result will appear here</div>
</body>
</html>
और मेरे php 'post.php' का उपयोग कर
<?php
echo $file['tmp_name'];
?>
अपलोड की गई फ़ाइल का नाम वापस वापस नहीं किए गए एक फ़ाइल अपलोड करना चाहते हैं। समस्या यह है कि मैं अपलोड की गई फ़ाइल तक नहीं पहुंच सका।
अग्रिम धन्यवाद! शिव
तुम क्या कर रहे –