Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Narendra Pal Singh  >  Upload File  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: test file
Class: Upload File
Process file uploads submitted via Web forms
Author: By
Last change:
Date: 5 years ago
Size: 728 bytes
 

Contents

Class file image Download
<?

include("upload.class.php");

if(
$_POST[upload]){

    
$up_obj = new UploadAudioFile();
    
    
//here pass tow argument upload_dir_path and save file name
    //echo $up_obj->upload_file(upload_dir,save_file_name);
    
    //if no file name pass then set uploading file name
    //echo $up_obj->upload_file("./upload/");
    
    // if no upload dir pass then will be default dir
    //echo $up_obj->upload_file();
    
    
echo $up_obj->upload_file("./upload/","ringtone");
    exit;    
}


?>

<center> <br><br>
<form method="post" enctype="multipart/form-data">
    Upload Audio File:<input type="file" name="afile" size="55" accept="application/msexcel"><br><br>
    <input type="submit" value="Submit" name="upload">
</form>
</center>