It looks like you're new here. If you want to get involved, click one of these buttons!
<form id='form2' method='post' action='go.php?to=my_photo' enctype='multipart/form-data'>
<input name='form' type='hidden' value=\"upload_photo_form\" />
<input id='new_photo' name='new_photo' type='file' />
<input type='submit' name='submit_button' value='Upload' />
</form>
$('#new_photo').uploadify({
'uploader' : 'uploadify.swf',
'auto' : true,
'multi' : false
});
* When I click my old "submit" button, the form with the files should be actually submitted to the form "action" (in this case: go.php?to=my_photo), just as it was before I switched to "uploadify".
* There should be no need to specify the "method" and the "script" arguments, as they are already specified in the form.
* If the "action" prints something, I should see what it prints, just as when posting the original form.
* The name of the variable in the $_FILES array should remain the same, without having to specify it using the fileDataName argument.
* If the "action" doesn't print anything and just redirects to another page, the redirect should happen, and it should not get stuck ...
After struggling for several hours to integrate uploadify in my existing site, I decided to give up and look for another solution.
An ideal uploadify should behave exactly like the "file" input it replaces. So, for example, if I have the following form: