Re: Sending Addition Info To uploadUrl

  •  10-26-2011, 6:14 AM

    Re: Sending Addition Info To uploadUrl

    Kevan:
    This is what I currently have:
     
    $uploader = new PhpUploader();
    $uploader->MultipleFilesUpload = true;
    $uploader->InsertText = "Upload Pictures";
    $uploader->MaxSizeKB = 10240;
    $uploader->AllowedFileExtensions = "*.jpg,*.png,*.gif,*.bmp,*.psd";
    $uploader->InsertButtonID = "picUpload";
    $uploader->UploadUrl = "ur_pic_upload2.php";
    $uploader->Render();
     
    What I need, is for more information to be posted to ur_pic_upload2.php. For example, I need to send it an ID number when a picture is uploaded. In a form, I would just go:
    <input type="hidden" name="var" value="1838540"> 
    You can send it via GET
     
    $uploader->UploadUrl = "ur_pic_upload2.php?value=YOUR_DATA";
     
View Complete Thread