I have a user profile page with information that can be saved with either of 4 different buttons (save, save + Close, Save + New, ...) I would like to use the Ajax uploader to queue up a file for upload and only perform the actual upload after the save function executed by whatever button is pressed is actually run.
so i want
SaveUser();
if(SaveUserFunctionExecutesProperly && Uploader.HasFile)
{
UploadFile();
}
can this be done?
I can't seem to get the order of operations down it always tries to upload first and when I force it to save first it doesnt upload.