Invité
Invité n'ayant pas de compte PHPfrance
23 sept. 2005, 12:55
bonjour a tous, comment upload un fichier swf ? pour les images gif et jpg j'arrive sans probleme les swf impossible merci d'avance
<?
session_start();
if($supprimer=="oui") {
unlink($adresse);
print("<b><p align=center>Photo de la fiche $id appartenant à la famille $table supprimée!<br>");
}
if($upload=="oui") {
$type=$photo_type;
if($type=="image/gif") {
$extension=".gif";
}
if($type=="application/x-shockwave-flash/swf") {
$extension=".swf";
}
$destination_photo = '../images/'.$table.'/'.$id.$extension;
move_uploaded_file($photo, $destination_photo);
print("<b><p align=center> Photo correctement envoyée!<br>");
echo "<a href=javascript:history.go(-2)>Retour liste</a>";
}
else {
if(file_exists('../images/'.$table.'/'.$id.'.jpg')) {
$adresse_img = '../images/'.$table.'/'.$id.'.jpg';
}
if(file_exists('../images/'.$table.'/'.$id.'.swf')) {
$adresse_img = '../images/'.$table.'/'.$id.'.swf';
}
if($adresse_img=="") {
blablabla......