This content has been marked as final.
Show 3 replies
-
1. Re: Retrieve file name after upload
julien1 Sep 19, 2004 5:20 PM (in response to mbalz)I thought that theute added it for the bb module attachments, waht nukes branch is it ?
-
2. Re: Retrieve file name after upload
theute Sep 19, 2004 9:07 PM (in response to mbalz)In HEAD:
In MultipartRequest there is the method:
/**
* Returns an uploaded file.
* @param name the name of the parameter
* @return the file or null if it does not exists
*/
public UploadedFile getFileParameter(String name)
In UploadedFile there is:
/**
* Give the original name of the file if provided by the client
* @return Original name of the file
*/
public String getName()
And you get what you want :) -
3. Re: Retrieve file name after upload
thepriz Sep 20, 2004 1:47 PM (in response to mbalz)This is great. I actually did this for the project that I was working on and didn't think about checking it in till I saw this but it is already done, oh well.