views:

1537

answers:

4

I have trouble uploading files with SWFUpload when target servlet is listening on HTTPS. On HTTP it works fine.

The issue is only when using FireFox or Opera. On IE it works fine - not tried other browsers.

EDIT: Error message as provided from SWFUpload when in debug mode:

*SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0 SWF DEBUG: Event: uploadError : IO Error : File ID: SWFUpload_0_0. IO Error: Error #2038 SWF DEBUG: Event: uploadComplete : Upload cycle complete.*

+2  A: 

Possibly a certificate related issue.

Check if there are any certificate related warnings when you open the target site in those browsers.

Open the certificate and check for warnings in there as well.

eglasius
A: 

2038 Is a Flash IO Error:

"Flash IO Errors are not very helpful. The same couple of error numbers are returned for just about everything.

Here are some common issues that cause these error codes:

  • Invalid URL
  • Server max post size or max upload size exceeded
  • Server unexpectedly terminates the connection
  • Zero byte file uploaded
  • Basic Authentication failed

To debug these issues I first verify that my upload is working using a standard HTML upload form pointing at my upload.php"

If it were http I'd suggest using fiddler or wireshark but I don't think that will help for https.

Mike Blandford
It working perfectly on HTTP and the servlet also works. The issue occurs only on HTTPS and FF / Opera. I assume it's some certificate issue as Freddy mentioned but the hard thing is to find out why.
Drejc
+1  A: 

It appears to be a certificate authority issue: SWF discussion over HTTPS

Drejc
+1  A: 

It's for sure a certificate issue - it will work with HTTPS, Firefox and an official certificate.

I use SWFUpload in combination with HTTPS on the site invoiceplatform.com and it works with IE, Safari, Firefox and Chrome (did not test other browsers). On the test server Firefox doesn't work with HTTPS because there's no official certificate configured.

penguintux