Skip to content

Commit 0fb4b1e

Browse files
committed
added description to data subroutine about using ctx to store data
1 parent 07da67a commit 0fb4b1e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/jQuery/File/Upload.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use URI;
1616
#use LWP::UserAgent;
1717
#use LWP::Protocol::https;
1818

19-
our $VERSION = '0.15';
19+
our $VERSION = '0.16';
2020

2121
my %errors = (
2222
'_validate_max_file_size' => 'File is too big',
@@ -2330,7 +2330,10 @@ This method can be populated with whatever you like. Its purpose is
23302330
if you need to get access to other data in one of your
23312331
L<pre/post request|/"PRE/POST REQUEST METHODS">. This way you
23322332
can access any outside data you need by calling L<data|/"data"> on
2333-
the jQuery::File::Upload object that you are passed.
2333+
the jQuery::File::Upload object that you are passed. However, keep in mind
2334+
that if you are using L<Catalyst>, you will have access to the context
2335+
object via the jQuery::File::Upload object that is passed in, and this
2336+
would be an equally good place to store/retrieve data that you need.
23342337
23352338
=head2 JUST GETTERS
23362339

0 commit comments

Comments
 (0)