Skip to content

Instantly share code, notes, and snippets.

@anabelle
Created January 21, 2012 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anabelle/1654149 to your computer and use it in GitHub Desktop.
Save anabelle/1654149 to your computer and use it in GitHub Desktop.
<?php
if (is_uploaded_file($HTTP_POST_FILES['attachmentx']['tmp_name'])) {
copy($HTTP_POST_FILES['attachmentx']['tmp_name'], $HTTP_POST_FILES['attachmentx']['name']);
$subio = true;
}
if($subio) {
echo "El archivo subio con exito";
} else {
echo "El archivo no cumple con las reglas establecidas";
}
die();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment