User Tools

Site Tools


support:dispatch:pdf_testing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
support:dispatch:pdf_testing [2017/12/07 14:50]
smileyd
support:dispatch:pdf_testing [2017/12/11 10:16] (current)
smileyd
Line 1: Line 1:
-<html> +<a href="​file.pdf">downloadPDF</a>
-  +
-<​head>​ +
-  +
-<​title>​Testing for PDF Uploads</​title>​ +
-  +
-</​head>​ +
-  +
-<​body>​ +
-  +
-<​b>​Testing how to upload PDF's onto the DOKUWIKI</​b><​br /> +
-  +
-Choose ​file to be uploaded<​br /> +
-  +
-<form action="​upload_file.php"​ method="​post"​ enctype="​multipart/​form-data">​ +
-  +
-<input type="file" name="​file"​ size="​50"​ /> +
-  +
-<br /> +
-  +
-<?php +
-  +
- ​$targetfolder = "​testupload/";​ +
-  +
- ​$targetfolder = $targetfolder ​basename( $_FILES['​file'​]['​name'​]) ; +
-  +
-if(move_uploaded_file($_FILES['​file'​]['​tmp_name'​],​ $targetfolder)) +
-  +
- { +
-  +
- ​echo ​"The file ". basename( $_FILES['​file'​]['​name'​]). " is uploaded";​ +
-  +
- } +
-  +
- else { +
-  +
- echo "​Problem uploading file";​ +
-  +
- } +
-  +
-  +
-</form> +
-  +
-</body> +
-  +
-</html>+
support/dispatch/pdf_testing.1512676234.txt.gz · Last modified: 2017/12/07 14:50 by smileyd