Skip to content

Instantly share code, notes, and snippets.

Avatar

Leo Condori ShippingGroup

View GitHub Profile
View ejemplo de UPLOAD
/********************************************
**** EDITAR IMAGEN COMMERCE *******
*********************************************/
$app->post("/updateimage",function() use ($db,$app){
function generateRandom($longitud) {
$key = '';
$pattern = '1234567890abcdefghijklmnopqrstuvwxyz';
$max = strlen($pattern)-1;
for($i=0;$i < $longitud;$i++) $key .= $pattern{mt_rand(0,$max)};