Created
April 20, 2017 14:33
-
-
Save shrimpwagon/0bc0a0a70a921d55529a49d141954b53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('html5_image_upload.php'); | |
$file = get_xhr_file(); | |
// Original file name: | |
$name = $file['name']; | |
// Size of file: | |
$size = $file['size']; | |
// File type (mime): | |
$type = $file['type']; | |
// Temporary file path (get binary file from here): | |
$file_raw_data = file_get_contents($file['path']); | |
// Miscellanous data sent from form: | |
$object = $file['data']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment