You should be able to do with this with the post_params setting. This,
of course, assumes that you are using $codigo in php and not trying to
pass it to javascript.
post_params: {"codigo": "$codigo"};
Alternatively you should also be able to make use of the $_SESSION
variable. Where ever you create $codigo you'd have
session_start();
$_SESSION['codigo'] = $codigo
and then in the upload target file (as specified by upload_url)
session_start();
$codigo = $_SESSION['codigo']
If you go the session route you may need to pass the PHPSESSID
so on the swfupload page you need to set
upload_url: "../upload.php", // Relative to the SWF file
post_params: {"PHPSESSID": "$my_session_id"},
and in upload.php
// Get the session Id passed from SWFUpload. We have to do this to
work-around the Flash Player Cookie Bug
if (isset ( $_POST ["PHPSESSID"] )) {
session_id ( $_POST ["PHPSESSID"] );
}
session_start ();
$codigo = $_SESSION['codigo']
Hopefully that helps
Chris