when i put this returns ok

formData.append(fileType + '-uploadUid', 'jhhhh');
                formData.append(fileType + '-token', '1234');

but how do i pass the php values to jhhhh or 1234?

<input type="hidden" id="uploadUid"  value="<?php echo $sessionUid;?>" name="update_uid">
                        <input type="hidden" id="upload_token"   value="<?php echo $sessionToken;?>" name="update_token">
Member Avatar for diafol

but how do i pass the php values to jhhhh or 1234?

No idea what you mean. The hidden fields should be passed by default with the other form data. Can't see why you need to make a special .append for it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.