• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to handle problem in filespace in java?  RSS feed

 
Rahul Ba
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have encountered very strange problem....problem while handling file spaces.
Here is the explanation: I have functionality to upload file.Let say I have uploaded file with name "Presentation my na e is rahul.ppt". now when it gets store on server...I do not know but somehow it adds space before word 'my' i.e it becomes "Presentation my na e is rahul.ppt". Hence, when I try to access this file from server...it says file not found....how to handle this situation???


Thanks in advance.....
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I generally would not use files that contain whitespaces. That solves all your problems.
 
Gerardo Tasistro
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure it is storing it with that name and not some temporary file name? Maybe you're seeing what the browser sends as local name, but the upload is actually in your temp directory with some odd name. Thus you can't access it with the name it originally had.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!