you can modify this line

    url : 'upload.php',

with this one

     url : 'upload.php?CarpetaImagenes=' + $("#id-vendo-arriendo").val(),

and in your php

$carpetaImagenes = $_REQUEST['CarpetaImagenes'];
$targetDir = "../img/slider-recomendados/recomendados/".$carpetaImagenes;

2

(1 replies, posted in General discussion)

you must set this in your upload.php file, if you use the standard upload.php file, you must modify this section:

// Settings
//$targetDir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload";
$targetDir = 'uploads';

The files go to $targetdir.