PHP Classes

mime type

Recommend this page to a friend!

      upload.inc.php  >  All threads  >  mime type  >  (Un) Subscribe thread alerts  
Subject:mime type
Summary:accepted mime types
Messages:2
Author:daniele calanca
Date:2005-01-23 11:50:36
Update:2005-01-24 09:43:54
 

  1. mime type   Reply   Report abuse  
Picture of daniele calanca daniele calanca - 2005-01-23 11:50:37
in the example.php file the following call was used:

$file=$myUploadobj->upload_file($upload_dir,'file',true,true,0,"jpg|jpeg|gif");

which other mime types are accepted?

daniele

  2. Re: mime type   Reply   Report abuse  
Picture of Harish Chauhan Harish Chauhan - 2005-01-24 09:43:54 - In reply to message 1 from daniele calanca
$file=$myUploadobj->upload_file($upload_dir,'file',true,true,0,"jpg|jpeg|gif");


Upload Dir: '$upload_dir' : Directiory where the uploaded file will placed.
Input Field Name: 'file' : File input field name.
Rename : True for rename file if some is exists. Or if you want to give new file name then just write new file name rather than "True"
Replace: If file exists replace or not.
Max File Size : 0 denotes default value.
Check for Types : "jpg|jpeg|gif" i.e. funcction will check of these file extensions.
if it is ("doc|txt|rtf") then it will check the uploaded file having any of these extensions.