I'm uploading files via JS and storing the temp path in the session. Than i use the following code to move the files.
if(move_uploaded_file($_SESSION['temp_img'][$key]['path'], $dest.$bigimg)){
$dest
and $bigimg
are defined earlier in the script with the id from the database.
Any Ideas or alternatives ?