$mime_type = $images['type'][$i];
$tmp_file = $images['tmp_name'][$i];
$error = $images['error'][$i];
+ if($error != '0') {
+ http_response_code(400);
+ die('Upload error');
+ }
$size = $images['size'][$i];
// strip EXIF
$img = new Imagick($tmp_file);
<label>Pick Images:<input type="file" id="upload" name="image[]" multiple>
</input></label>
<br/>
- <textarea id="comment" name="comment">Title/comment your post</textarea>
+ <textarea id="comment" name="comment" placeholder="Title/comment your post"></textarea>
<br/>
<input type="submit" value="Upload"/>
</form>