• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

File upload with FormFile loses filename capitalisation.

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

I am finding that all file uploads in our site use struts FormFile, which works rather well, I have however noticed that the filenames are always in lowercase, no matter what they were before upload.

I cannot see anything in the documentation that explains this.
The problem exists across browsers.
Most users will be use Windows however issue also occurs on Linux.

Current thinking is to create another field on the Struts Form in which to store the filename, and to have JavaScript populate this value using onChange.

Any explanations or neater solutions would be much appreciated.
 
Ashley Roper
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My rather crude work around :



Using the theFileName String value as the real filename, capitalisation preserved.
This issue was with Struts 1 by the way.

Any alternate solutions or an explanation for the issue would still be appreciated.


 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic