yes - that's what i suspect is happening somewhere inside catalyst - and i do get that warning - here's more (earlier) console output from the server
You can connect to your server at http://fishbone.local:3000
Use of uninitialized value in list assignment at /Library/Perl/5.8.6/C
+atalyst/Engine/HTTP.pm line 371.
Use of uninitialized value in list assignment at /Library/Perl/5.8.6/C
+atalyst/Engine/HTTP.pm line 371.
Odd number of elements in anonymous hash at generated method (unknown
+origin) line 8.
Use of uninitialized value in concatenation (.) or string at /Users/an
+dye/PhotoApp/script/../lib/PhotoApp/Controller/Root.pm line 93.
Use of uninitialized value in link at /Library/Perl/5.8.6/Catalyst/Req
+uest/Upload.pm line 120.
Use of uninitialized value in string eq at /System/Library/Perl/5.8.6/
+File/Copy.pm line 76.
Use of uninitialized value in stat at /System/Library/Perl/5.8.6/File/
+Copy.pm line 82.
Use of uninitialized value in -d at /System/Library/Perl/5.8.6/File/Co
+py.pm line 91.
Use of uninitialized value in -e at /Library/Perl/5.8.6/Catalyst/Engin
+e.pm line 317.
after looking at the docs some more, I'm now doing this:
for my $field ( $c->req->upload ) {
$c->log->warn("field is $field");
my $upload = $c->req->upload($field);
my $filename = $upload->filename;
my $target = $absGalleryPath . $filename;
unless ( $upload->link_to($target) || $upload->copy_to($target
+) ) {
die( "Failed to copy '$filename' to '$target': $!" );
}
}
as per the cookbook, but still no joy.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|