Re: [Catalyst] How to de-serialize json?

2010-01-24 Thread Bill Moseley
On Sat, Jan 23, 2010 at 7:20 PM, Hans Dieter Pearcey hdp.perl.catalyst.us...@weftsoar.net wrote: As far as I can tell, you missed the point of my message, which makes me wonder if I've missed the point of yours. Are you talking about a set of conventions you'd like to be able to build for

[Catalyst] Where is the form field lost?

2010-01-24 Thread Octavian Rasnita
Hi, After sending a form with a file upload field, that field is lost if no file was attached, just like when the form doesn't contain that file upload field at all. I have tried to check Catalyst, Catalyst::Request, Catalyst::Engine, HTTP::Body and HTTP::Body::MultiPart in order to find where

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Bill Moseley
On Sun, Jan 24, 2010 at 7:03 AM, Octavian Rasnita orasn...@gmail.comwrote: I need to know if the form didn't have a file upload field, or if it had it but no file was uploaded. Give your upload field(s) a name like upload_1 and then see if it exists in uploads. Can you give me a hint where

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Stephen Howard
I believe your problem lies in the browser itself. I know, for example, that browsers do not send empty values for checkboxes that remain unchecked - they simply eliminate that field from the form submission altogether. Sounds like file fields might be the same way. Your best bet is to

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Octavian Rasnita
Hi Bill, From: Bill Moseley mose...@hank.org On Sun, Jan 24, 2010 at 7:03 AM, Octavian Rasnita orasn...@gmail.comwrote: I need to know if the form didn't have a file upload field, or if it had it but no file was uploaded. Give your upload field(s) a name like upload_1 and then see if it

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Octavian Rasnita
Hi Stephen, From: Stephen Howard step...@enterity.com I believe your problem lies in the browser itself. I know, for example, that browsers do not send empty values for checkboxes that remain unchecked - they simply eliminate that field from the form submission altogether. Sounds like

Re: [Catalyst] Re: proper flow control with $c-foward, in search of greater grok

2010-01-24 Thread Dennis Daupert
My apologies...My day job heated up considerably the past couple weeks On Mon, Jan 11, 2010 at 4:00 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote: Uhm, you know that `qw` does not interpolate, right? So that line will assign the literal strings '$user_id' and '$blog_id' into @args, not

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Bill Moseley
On Sun, Jan 24, 2010 at 8:31 AM, Octavian Rasnita orasn...@gmail.comwrote: Give your upload field(s) a name like upload_1 and then see if it exists in uploads. I gave it the name file, but if the file is not uploaded, it doesn't appear in uploads(). (I hope file is OK as a name, no?)

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Octavian Rasnita
From: Bill Moseley mose...@hank.org On Sun, Jan 24, 2010 at 8:31 AM, Octavian Rasnita orasn...@gmail.comwrote: Give your upload field(s) a name like upload_1 and then see if it exists in uploads. I gave it the name file, but if the file is not uploaded, it doesn't appear in uploads(). (I

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Charlie Garrison
Good morning, On 24/01/10 at 10:47 PM +0200, Octavian Rasnita orasn...@gmail.com wrote: I made a InflateColumn::FileUpload inflator similar to InflateColumn::File, which also works with HTML::FormFu and it has an additional feature. I had some problems with InflateColumn::File a few weeks

Re: [Catalyst] Where is the form field lost?

2010-01-24 Thread Octavian Râşniţă
From: Charlie Garrison garri...@zeta.org.au On 24/01/10 at 10:47 PM +0200, Octavian Rasnita orasn...@gmail.com wrote: I made a InflateColumn::FileUpload inflator similar to InflateColumn::File, which also works with HTML::FormFu and it has an additional feature. I had some problems with