http://pontiac.cz/graphics/gallery/full/1977-Pontiac-Firebird.001.jpg
It's my dream car 😄
http://pontiac.cz/graphics/gallery/full/1977-Pontiac-Firebird.001.jpg
It's my dream car 😄
Here is mine
[php]
//handle graphic upload
if ($_FILES['mediaPDF']['size'] != ""😉 {
$uploadDir = $_SERVER['APPL_PHYSICAL_PATH']."../files/".$filePath;
//check file type
if ($_FILES['mediaPDF']['type'] == "application/pdf"😉 {
//check file size - max 50KB or less
if ($_FILES['mediaPDF']['size'] <= 51200) {
//store the image
$uploadFile = $uploadDir.basename($_FILES['mediaPDF']['name']);
if (move_uploaded_file($_FILES['mediaPDF']['tmp_name'], $uploadFile)) {
//file was valid and stored
$mediaPDF = $_FILES['mediaPDF']['name'];
} else {
//invalid file or problem moving the file, set null
$imageError = 1;
$errorText = "Error: The file was not able to be uploaded, please contact [email protected]";
}
} else {
$imageError = 1;
$errorText = "Your PDF file is too large, only PDF's of 50KB or smaller are allowed to be uploaded.";
}
} else {
$imageError = 1;
$errorText = "Only PDF files are allowed to be uploaded.";
}
} else {
//no new image selected - leave current
$mediaPDF = "/files/".$filePath.$_FILES['mediaPDF']['name'];
}
[/php]
Originally posted by Jack of Blades
DOesent mean there cant be another tread about it
Yes it does. Duplicates aren't allowed.
😂 it's the link to this thread.