On 15/07/2011 21:46, Ted Goddard wrote:
>
> On javax.servlet.http.Part we currently have the method
>
> void write(java.lang.String fileName)
>
> but it's not easy for application code to get to the written file
> because MultipartConfig.location can be modified at deployment time.
Tomcat allows fileName to be absolute. Only if it is relative is
MultipartConfig.location used. Does that solve the problem?
Mark
> Perhaps the easiest thing would be to have the written File returned:
>
> java.io.File write(java.lang.String fileName)
>
> or add Part.getFile() (which could return null if the file has not been
> written -- the interface does seem to allow multipart uploads that are not
> stored immediately on the file system; do any implementations work this way?)
>
> Cheers,
> Ted.
>
>