# move\_uploaded\_file.. why does this not work

**URL:** <https://forum.kirupa.com/t/move-uploaded-file-why-does-this-not-work/73326>\
**Category:** Uncategorized\
**Created:** [December 15, 2004, 9:42am UTC](https://forum.kirupa.com/t/move-uploaded-file-why-does-this-not-work/73326 "2004-12-15T09:42:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sWo0p](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sWo0p](https://forum.kirupa.com/u/sWo0p)\
**Post date:** [December 15, 2004, 9:42am UTC](https://forum.kirupa.com/t/move-uploaded-file-why-does-this-not-work/73326/1 "2004-12-15T09:42:18Z")

</div>

I made me a little upload script without all the bull\*\*\*\* of checking for filetype or filesize… did’nt need it… but somehow i cant get it to work… it looks like its upload acording to the loaderbar at the bottom of my browser but i keep getting di’nt work… whats wrong with this???

```php

<?

if ($HTTP_SERVER_VARS['REQUEST_METHOD'] == 'POST') { 
 if (!@move_uploaded_file($HTTP_POST_FILES['mijn_bestand']['tmp_name'], 
 'plaatjes/')) { 
  die ("didn't work."); 
 } 

 die ("done..."); 
} 

?>

```

\<form enctype=“multipart/form-data” method=“post” action="  
\<?php echo $HTTP\_SERVER\_VARS[‘PHP\_SELF’]; ?\>"\>

\<input type=“file” name=“mijn\_bestand”\>\<br\>  
\<input type=“submit” value=“Uploaden”\>  
\</form\>

My /plaatjes/ directory is chmod 777…
