With the GWT File Uploader you can easily get the file url from the uploader. What is the equivalent mechanism that I can use in order to access or get the location of the uploaded file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure I follow your question. Are you asking about how to get the location of the file on the end users computer? Or the location of the file after it is uploaded to the server? I don't believe the former is currently possible (at least not in a cross-browser compatible way), however the name of the file (without the path) is available on the client side. The later is certainly possible, but it would depend on what library you're using on the server to receive the file. If you're using the Apache Commons File Upload library it would be something like the following (assuming that you're uploading the files to disk instead of in-memory):
With the GWT File Uploader you can easily get the file url from the uploader. What is the equivalent mechanism that I can use in order to access or get the location of the uploaded file.
I'm not sure I follow your question. Are you asking about how to get the location of the file on the end users computer? Or the location of the file after it is uploaded to the server? I don't believe the former is currently possible (at least not in a cross-browser compatible way), however the name of the file (without the path) is available on the client side. The later is certainly possible, but it would depend on what library you're using on the server to receive the file. If you're using the Apache Commons File Upload library it would be something like the following (assuming that you're uploading the files to disk instead of in-memory):
Hope that helps,
-Shawn