Hello.
I should check if the uploaded file has right extension,
and type.
I can get the filetype by File::Type module
my $type = $ft->checktype_filename($file);
So now the type could look like this:
image/x-png
How can I get the first word (image)of that line?
If I could get that word...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.