#!/usr/bin/perl use strict; use warnings; use CGI; use Number::Bytes::Human qw(format_bytes); my $filename = '/root/Desktop/moon.jpg'; my $query = CGI->new(-s $filename); my $size = format_bytes($query->keywords); print $size, "\n";
In reply to Re: Get jpg dimensions while uploading?
by Khen1950fx
in thread Get jpg dimensions while uploading?
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |