I suppose you want the button show up when the user uploads a file with the first instance first, right?
Please put the following code inside your page manually using the page editor, below the first shortcode:
<button id="wfu_instance2_button" onclick="document.getElementById('wfu_instance2').style.display = 'block';" style="display:none;">Upload Another File</button>
<div id="wfu_instance2" style="display:none;">[wordpress_file_upload uploadid="2" uploadpath="uploads/inbox2"]</div>
<script type="text/javascript">
if (!window["wfu_notify_server_upload_ended_orig"]) {
window["wfu_notify_server_upload_ended_orig"] = window["wfu_notify_server_upload_ended"];
wfu_notify_server_upload_ended = function(sid, unique_id, params_index, session_token) {
var G = GlobalData[sid];
if (G.upload_state == 0 || G.upload_state == 1)
document.getElementById("wfu_instance2_button").style.display = "";
wfu_notify_server_upload_ended_orig(sid, unique_id, params_index, session_token);
}
}
</script>
Set the uploadpath attribute of the second shortcode to the one you want.
Update the page. You will not see any button or second upload instance at the beginning. When a file is uploaded, the button “Upload Another File” will show up. If the user presses it, the second upload form will show up.
Regards
Nickolas