AFAIK you can't do this.

with HTTP file uploads you have to store the data immediately or it is lost.
You have to store the file part to a temp file, then do all your work, then
come back and move the file and give it your new name, or delete it if your
transaction didn't go through.




On 5/3/02 1:01 AM, "# Lalit Nagpal #" <[EMAIL PROTECTED]> wrote:

> 
> sorry out of topic
> 
> i am uploading files along with some form data, strategy is i store form data
> first the primary key is auto_incremented and then i name the uploaded files
> with the primary key so that i can recognize which uploaded file belongs to
> who. now when i store the record in mysql i get back a resultset which
> contains no value (returned by statement.executeQuery(insert ...)). How to get
> the primary key which is auto generated (incremented by mysql) after inserting
> a record (primary key of the inserted record).
> 
> suggestions welcome and thanx in advance
> 
> 
> 
> 
> # Lalit Nagpal #
> 
> 
> ---------------------------------
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to