From 85e80df0ba127936f9ba646ba00e25b37ddc2ec4 Mon Sep 17 00:00:00 2001 From: Jeena Date: Thu, 23 Jul 2015 00:32:01 +0200 Subject: Adds possibility to post photos. With this it is possible to post a photo note with a description, nothing more. It doesn't move the file in the file system, just posts it from the temp location to the users server. It also does validate for file size, content type and max upload size and shows the errors to the user. If everything goes according to plan the response from the users server is shown, together with a link with the posted photos URL. --- views/photo.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 views/photo.php (limited to 'views/photo.php') diff --git a/views/photo.php b/views/photo.php new file mode 100644 index 0000000..364a55d --- /dev/null +++ b/views/photo.php @@ -0,0 +1,38 @@ +
+ + +
+ +
+ + +

Photo JPEG, GIF or PNG.

+
+ +
+ + +
+ + +
+ + location)): ?> +
+ Success! Photo posted to: location ?> +
+ + + error)): ?> +
+ Error: error ?> +
+ + + response)): ?> +

Response:

+
response ?>
+ + + +
\ No newline at end of file -- cgit v1.2.3