开发者

Send Email Confirmation on SWFUpload

Not sure if too many of you are familiar with 开发者_运维技巧SWFUpload. It's a flash/js/php based uploading script. My main issue is that I'm decently fluent in php where I can create a simple mail() script, however, with the various JS files I'm not sure if it'd be better to create the mail function in JS.

If anyone has had experience with SWFUpload please advise me as to where I can create a script after the upload has completed.

Thanks in advance.


I'm 100% sure somebody asked the same thing a few weeks ago, but I can't find the duplicate. Anyway, the conclusion was:

  • You can't put the sending of the E-Mail into the PHP or ASP script that receives the file, as that won't work for multiple uploads (each gets its own script instance)

  • You need to make an Ajax call to a PHP file that sends the E-Mail and place that call into the complete (or success) callback of SWFUpload.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜