upload file to php server

Put your problem here if it does not fit any of the other categories.

upload file to php server

Postby guruk » Wed Mar 11, 2009 5:54 pm

Hi,
i went through
http://www.anddev.org/upload_files_to_w ... 3-s15.html
and really come crazy. some stuff nearly works. other not at all and i just need a simple
script to upload an array of data buf[8192] to my server


thats on my php server:

<?php

$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);

if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}

?>


I would be very glad about a simple script that works with sdk 1.1
If there is a chance to count how many bytes are already uploaded would be great.

Thanks
Chris
guruk
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sun Mar 08, 2009 8:05 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 9 guests