Forums Register Login

how to handle problem in filespace in java?

+Pie Number of slices to send: Send
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.....
+Pie Number of slices to send: Send
I generally would not use files that contain whitespaces. That solves all your problems.
+Pie Number of slices to send: Send
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.
Honk if you love justice! And honk twice for tiny ads!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 544 times.
Similar Threads
e voting machine
exceptions
problem with "group by"
read from csv: how to handle null?
If it weren't for ______, I'd ________
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:23:03.