This week's book giveaway is in the Spring forum.
We're giving away four copies of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 and have Marten Deinum & Iuliana Cosmina on-line!
See this thread for details.
Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Weird error uploading file via https

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I've got a form that looks a bit like this :

(i.e. a file upload form that submits to a servlet on another server via https.)

The problem is, I'm getting a "page not found" error. I think it's got something to do with certificates, because if you try to GET the servlet (e.g. browse to it directly), you are prompted to accept the certificate. If you try to POST to the servlet, i.e. using the form, then the certificate acceptance dialog does not display any you get a "Page not found" error.

However, if you change the input type from "file" to "text" and submit the form, the dialog box is displayed. So, what is it about using input type="file" that is preventing the certificate acceptance dialog from appearing, and how do I fix it?

Can anyone point me in the right direction?

Thanks,
Jon.
 
Jon Pincott
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've discovered this is a known problem with IE. One workaround is to include on the upload form a link to a resource (e.g. a gif) on the secure server. This allows you to accept the certificate before submitting the form.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic