PHP Classes

File: example

Recommend this page to a friend!
  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: 14 years ago
Size: 728 bytes


Class file image Download



$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");


<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">