Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Uploading Multiple Photos and Resizing before saving Help!

by kcott (Archbishop)
on Nov 16, 2010 at 02:49 UTC ( [id://871626]=note: print w/replies, xml ) Need Help??


in reply to Uploading Multiple Photos and Resizing before saving Help!

You really need to tell us what part you cant get to work. Problems with uploading? Problems with resizing? Are there error messages? What else can you tell us?

Here's one part you can fix:

foreach (@inx) { delete @inx[$ac] if $_ =~ /^Content-Type: application\/octet-stream +/; $ac++; }

delete is intended to operate on hashes (or slices thereof). Note the documentation: "Be aware that calling delete on array values is deprecated and likely to be removed in a future version of Perl.". That piece of code could be written like:

@inx = grep { $_ !~ /.../ } @inx;

-- Ken

Replies are listed 'Best First'.
Re^2: Uploading Multiple Photos and Resizing before saving Help!
by Anonymous Monk on Nov 16, 2010 at 03:06 UTC
    Upload works, resizing the images is where the issue is. I need the photos resized from lets say 1600X1200 resized to 180x168 before they can get to its final destination/directory.
      There is no possible way upload works as you're attempting to do the job of the CGI module.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://871626]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-24 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found