PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a basic html/php image upload script that I use for uploading images to a web site, works fine while uploading images, I have now altered it slightly to permit uploading movies but if I use it to upload a .flv movie $_FILES['file']['tmp_name'] returns a value of 'none', this of course presents a problem when I get to:
well does the uploaded file contain anything, size 0 should imply that it really is zero...
uhm, wait a minute, something is missing, there should be a tmpname and such... are you sure the file isn't zero size or so, coz if I'm not all gone what you printed is not enough... there should be more... such as where the file is...
What I am posting is exactly what is returned by print_r, all the movies I am uploading actually work and range in size from 2.5Mb down to .475Mb. If I upload them manually (ftp client) then they all work as expected.
by FTP you mean via a PHP-script? or am I missing something... or do you really mean by FTP?
because how can you know if they work if you don't have a tempname for them (to know where they are?).
When I mentioned ftp I was refering to an ftp client and not an ftp script, using an ftp client the movies play OK so they have content and are not size '0'.
The script I am using is a standard html/php image upload script, this is where I am not getting the $_FILE() array values as expected.