first commit
This commit is contained in:
13
front/article.list.savepic.php
Normal file
13
front/article.list.savepic.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
|
||||
include ('../model_controller/save.article.pic.php');
|
||||
list($type, $data) = explode(';', $_POST['imgdata']);
|
||||
list(, $data) = explode(',', $data);
|
||||
list(, $type) = explode('/', $type);
|
||||
$data = base64_decode($data);
|
||||
$filepath = '../pics/articles/'.$_POST['filename'].".".$type;
|
||||
file_put_contents($filepath, $data);
|
||||
updateProductPic($filepath,$_POST['filename']);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user