I'm having trouble uploading files with PHP scripts. I'm using normal uploading method with the following code
copy ($_FILES['userpicture']['tmp_name'],$uploaded_pic);
and when I tried to display the uploaded file, it looks like it could not complete the upload process and it repeated the the beginning of the file in places.
Here are the example of the original file before upload.