Hello,
I don't want the upload process to start automatically so I have commented the line with this.startUpload(); in my fileDialogComplete function from handlers.js
Also, I have a form on my main HTML upload page with:
span id="btnStartUpload" style="display: none;"
a href="#" onclick="this.startUpload();"
img src="images/start_upload.gif"
/a
/span
section which automatically gets displayed on fileDialogComplete event like this:
document.getElementById('btnStartUpload').style.display='';
=============================================
My problem is that when I press the Start Upload button nothing happens - so I think I should proceed in other way...
I would like to know if any SwfUpload coder or a person who knows better SwfUpload can give me any piece of advice regarding my issue.
Regards.
February 4, 2010 - 2:20pm
'this' in your button onlick doesn't reference the same object as 'this' in the fileDialogComplete event handler.
Somewhere you create a variable that holds your SWFupload object. You need to reference that instead of 'this'.
var mySWFUploadObject = new SWFUpload({ .... settings ... });
<span id="btnStartUpload" style="display: none;">
<a href="#" onclick="mySWFUploadObject.startUpload();">
<img src="images/start_upload.gif" />
</a>
</span>