Answer Posted / rashmi bajpai
On php coding file like uploaded.php<?php
$target_path="../upload/";//this is the name of that folder
in which we r uploading our video.//
$arg=$_FILES['uploadedfile']['tmp_name'];
if(move_uploaded_file($tmp,$target_path))
{
echo "The file". $_FILES['uploadedfile']['name']."has been
uploaded";
}
else
{
echo"there was an error in uploading";
}
?>
On other html file like uploaded.php:
<html>
<form enctype="multipart/form-data" action="uploaded.php"
method="post">//file should always be uploaded by post method.
<input type="hidden" name="MAX_FILE_SIZE" value="100000"/>
Choose a file to upload:
<input name="uploaded file" type="file"/> <br>
<input type="submit" value="upload file"/>
</form>
</html>
| Is This Answer Correct ? | 24 Yes | 3 No |
Post New Answer View All Answers
What is difference between count or sizeof function in php?
for image work which library?
What will the ?getdate() function returns in PHP?
Which library is used in php to do various types of image work?
How to Pass JSON Data in a URL using CURL in PHP?
Why do we use sessions in php?
Please explain is it possible to use com component in php?
How does php work?
What is php and its features?
how to open & closing opening period in fico
What are the different opening and closing tags available in PHP?
Write a program to display reverse of any number?
What php framework does wordpress use?
Which framework is best for php?
What are the methods useful for method overloading?