Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File upload with FormFile loses filename capitalisation.

 
Ashley Roper
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
  • 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.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic