Response title
This is preview!




Not sure where the issue lies, and which forum I should be posting on to find a solution, but any help would be appreciated.
//image upload
$('#imagefl').upload({
name: 'file',
method: 'post',
enctype: 'multipart/form-data',
action: 'upload.php',
onSubmit: function() {
$('#progress1').text('Uploading file...');
},
onComplete: function(data) {
//data contains the response from the action url
var image = $('div.image');
$(image).after('<div class=image id=imagedisp><img src="imagetmp/'+data+'"><br><a id=hideimg href="#">Hide image</a><input id= newimage name=newimage type=hidden value="'+data+'"></div>');
$('#progress1').text('');
$(image).remove();
}
});
<input type="hidden" name="MAX_FILE_SIZE" value="524288">
<input name='imagefl' id='imagefl' size='22.5' class='fle' type='file'>
<span id="progress1"> Please ensure your image names don't contain any special characters like %</span>
$.post("save.php",{
id:$('#id').val(),
save:$('#submit').val(),
name:$('#name').val(),
image:$('#image').val(),
newimage:$('#newimage').val(),
measure:$('#measure').val(),
cat0:$('#cat0').val(),
cat1:$('#cat1').val(),
cat2:$('#cat1').val(),
cat3:$('#cat3').val()
} ,function(data) {....
© 2012 jQuery Foundation
Sponsored by
and others.
