• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mobile phone "SAVE" filename problem  RSS feed

 
Mullin Yu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

user views a file by browsing to a servlet at tomcat wap/login?path=2005/4/6/63213473/1748291/&filename=cDkwMHNhbXBsZS1leGNlbC54bHMuMDAwMQ%3D%3D&msisdn=63213473

the servlet code:
...
...
response.setContentType("image/jpeg");
response.setHeader("Content-Disposition", "inline; filename=" + saveFileName.substring(saveFileName.lastIndexOf("/")+1));
...
...

but, after user views the file on the mobile and try to SAVE it. the filename is not the one set on the Header => filename, but instead mobile phone uses &filename=cDkwMHNhbXBsZS1leGNlbC54bHMuMDAwMQ%3D%3D&msisdn=63213473 as the filename

any ideas on this?

thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!