peter m hayward wrote:In my application the file that is uploaded carries the full url how can i remove the first part for example
C:\\jpegsToMatchBooks_30_Jan_12.zip how can i end up with just
jpegsToMatchBooks_30_Jan_12.zip as i think the C:\\ part even thou in this case it is just the name of the file is causing some issue on the server
One way would be to create a new
File object using the file path
string that you have, and use the
getName() method to get the last segment in the file path.