Parameters for uploader

Hello,

how to pass parameters to the server-side PHP script?

In your example, if the user uploads a file the script dhtmlxform_item_upload.php is started. As I want to change the server-side name of the file I want to pass this a a parameter to the PHP script.

Please advice.

Karl

Hello Karl,

to send addition parameters via GET you may use setURL method - the parameters should be added to the url:

var uploader = yourForm.getUploader(“uploaderName”);
uploader.setURL(“some.php?newName=myFile”);