Thanks for the tip, Geoff.


The WIki doesn't seem to give me quite enough info. Step by step, my thinking is as follows:

1.) If I set "autosave-uploads" to false, then I have to retrieve an uploaded file from memory as a FilePartArray, correct?
2.) Assuming I now have a FilePartArray in my Cocoon action which processed the upload, I'd like to make the image file accessible for a later processing step to embed a reference to the image in the HTML doc sent back to the client.
3.) Now, it seems like that reference can only be a file path, which means the images would need to be saved to disk on the server anyway.
4.) My problem with that is that I don't want the photos to end up in server storage for good, as I don't know of a way to always get a message from the client (browser) specifying if a person is done previewing. If they end up saving the product, I'd know, but what if they just close their window?


I'd appreciate your thoughts, as I'm not sure how to proceed.

Sonny

From: Geoff Howard <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: How to save uploaded files?
Date: Tue, 05 Aug 2003 15:14:48 -0400

Search the wiki for "upload"

Sonny Sukumar wrote:

If I want to keep the "autosave-uploads" param = false in web.xml, then how would I save certain files that I want to?


More specifically, sometimes I just want the user to be able to preview a photo next to other data but I don't want to save it. Other times I specifically want to save all form data, including the uploaded photos that come along in the multi-part form data.

What's the best way to implement this dual preview/save functionality?

Thanks,

Sonny


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to