|
Posted by Erwin Moller on 08/28/06 12:38
poorna wrote:
>
>> Hi,
>>
>> It is all well described at www.php.net:
>>
>> http://nl3.php.net/manual/en/features.file-upload.php
>>
>> It doesn't matter if your file contains a video or text. The uploading
>> logic is the same.
>>
>> Good luck.
>>
>> Regards,
>> Erwin Moller
>
>
> hi
>
> i checked it..
> It looks like it completes the upload but when I look in the album
> folders I see no videos or audio. I get no error message.
Do you mean you don't see an error during the process or that no error
occurs?
Because the latter can only be tested with $_FILES['userfile']['error']
Make sure you check what is in there.
The reason fileuploads do not work can be a lot of things.
Be sure you find out WHICH step is not working.
A few common mistakes:
1) Do say in your HTML-form-definition the enctype for the form:
enctype="multipart/form-data"
2) Can PHP write to the tempdirectory?
This is where PHP stores the file when it receives it. It will be destroyed
when the script end, so it is your scripts responsibility to MOVE IT OUT
before it ends.
3) Can PHP write to the targetdirectory?
Are you sure PHP has rights to write in the targetdirectory?
Anyway, you should just debug your script, be sure you read through the
documentation, especially the 'common pitfalls' part, and also the usefull
usercontributed notes.
Regards,
Erwin Moller
> this is my problem ..
> plz help me to come out from this
>
>
> regards
> poorna
[Back to original message]
|