php - How can I tweak this so it will accept .flv files? -


I want to tweak it so that it can handle .flv files, can someone help me?

   1) {resonant "code of return:" $ _FILES ["file"] ["error"]. "
" Else {resonance: "upload:"
"$ _FILES [" file "] [" name "]"
"echo" type: "$ _FILES [" file "] [" type "]"
" ; "Size:" echo ($ _FILES ["file"] ["size"] / 1024). "Kb
" echo "Temp file:". $ _FILES ["file"] [ "Tmp_name"] " (File_exists ("upload /". $ _FILES ["file"] ["name"])) {echo $ _FILES ["file"] ["name"] "already exists.";} Else {move_uploaded_file () $ _ FILES ["file"] ["tmp_name"], "upload /". $ _FILES ["file"] ["name"]); echo "stored in:" "upload" $ _FILES ["file"] ["Name"];}}} and {echo "invalid file";}?

Also, do I need to change somewhere else on my server so that I Can I handle flv files?

Thanks in advance.

Instead of video / FLV, I had to do this for my site:

  | | ($ _FILES ["file"] ["type"] == "video / x-flv")   

and then you want to make sure it's in your Apache config file :

  AddType video / x-flv .flv AddType application / x-shockwave-flash .swf   

Clearly those lines will be different If you are using IIS or something similar, but you get this idea.

Comments