Re: Half pre-processing a POST

2008-10-15 Thread Michael Marth
Bertrand, I think we discussed the same request here [1] and there were some good suggestions, but I do not know if there was anything implemented. Josh, I would also like to see your request be solved in general. However, for your particular use case (thumbnail generation) there is an OSGi bundle

Re: Half pre-processing a POST

2008-10-15 Thread Bertrand Delacretaz
Hi Josh, On Tue, Oct 14, 2008 at 10:07 PM, Joshua Oransky <[EMAIL PROTECTED]> wrote: > ...what I need is a way of processing those files before they are written. > My use case is that I want users to upload a single large image, and process > it with an image lib to generate thumbnails, etc. But I

Re: Half pre-processing a POST

2008-10-14 Thread Joshua Oransky
No, what I need is a way of processing those files before they are written. My use case is that I want users to upload a single large image, and process it with an image lib to generate thumbnails, etc. But I don't want to have to write all the code to ALSO persist the text data, like image

Re: Half pre-processing a POST

2008-10-13 Thread Bertrand Delacretaz
On Tue, Oct 7, 2008 at 8:56 AM, Joshua Oransky <[EMAIL PROTECTED]> wrote: > ...In fact, if storing files from a > form was as easy as storing text info, I wouldn't even need this... feature > request?... I'm not sure if I understand the problem - if you use a form like the data is upload

Re: Half pre-processing a POST

2008-10-07 Thread Dominique Jäggi
On Tue, Oct 7, 2008 at 8:56 AM, Joshua Oransky <[EMAIL PROTECTED]> wrote: > Because I want to keep all of my development inside of Sling. Besides, I > only want to process this on certain resourceTypes; something that is > already done by the whole Sling framework. In fact, if storing files from a

Re: Half pre-processing a POST

2008-10-07 Thread Joshua Oransky
How about this for the feature request: The chain will continue if the response is not committed, and the Sling servlet is allowed to continue processing the POST. But if I commit the response, the chain breaks, and processing stops. Does this make sense? Basically, I want an ability to mak

Re: Half pre-processing a POST

2008-10-06 Thread Joshua Oransky
Because I want to keep all of my development inside of Sling. Besides, I only want to process this on certain resourceTypes; something that is already done by the whole Sling framework. In fact, if storing files from a form was as easy as storing text info, I wouldn't even need this... feat

Re: Half pre-processing a POST

2008-10-06 Thread Dominique Jäggi
On Mon, Oct 6, 2008 at 8:27 PM, Joshua Oransky <[EMAIL PROTECTED]> wrote: > Is this possible? Kind of like the Servlet Filter concept, where I can > process some of the request than then pass it along. why don't you just use filtering then? take a look at the org.apache.sling.sample.filter.ZipFilt

Half pre-processing a POST

2008-10-06 Thread Joshua Oransky
I want to support uploading of files on some of my forms, but I want to do it in a generic kind of fashion. So what I would like to do is create a POST script that looks for files, but then passes the request back to sling to finish updating the properties. This way, I don't need to have a