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

2010-01-30 Thread Charlie Garrison
Good morning, On 25/01/10 at 7:28 PM +1100, Charlie Garrison garri...@zeta.org.au wrote: Hmm, sounds like I may have just volunteered for Cookbook doc patch, or at least an entry on my blog I've done a write-up of my experiences (and views) of using DBIx::Class::InflateColumn::FS:

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

2010-01-26 Thread Octavian Rasnita
From: Charlie Garrison garri...@zeta.org.au One of the reasons I found IC::FS so much better, was the extra control for things like how files are named/stored on disk. From the POD: fs_file_name Provides the file naming algorithm. Override this method to change it. This method is called

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

2010-01-26 Thread Charlie Garrison
Good morning, On 26/01/10 at 7:56 PM +0200, Octavian Rasnita orasn...@gmail.com wrote: From: Charlie Garrison garri...@zeta.org.au _fs_column_dirs Returns the sub-directory components for a given file name. Override it to provide a deeper directory tree or change the algorithm. That's

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

2010-01-25 Thread Charlie Garrison
Good evening, On 25/01/10 at 8:08 AM +0200, orasn...@gmail.com wrote: From: Charlie Garrison garri...@zeta.org.au On 24/01/10 at 10:47 PM +0200, Octavian Rasnita orasn...@gmail.com wrote: I had some problems with InflateColumn::File a few weeks ago which were going to be hard for me to work

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

2010-01-25 Thread Octavian Râşniţă
From: Charlie Garrison garri...@zeta.org.au Can you tell about those problems? I hope I won't create them in the inflator I want to create. I don't recall exactly, but IC::File had problems with multiple 'file' columns. I remember, the delete part was completely broken if all files were not in

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

2010-01-25 Thread Charlie Garrison
Good evening, On 25/01/10 at 11:30 AM +0200, orasn...@gmail.com wrote: If I remember well, the algorithm for deletion made a single deletion and then did a last() thinking that if one file was deleted, all the files were deleted. I think there was a little comment there that tells that.

[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] 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