Hi,

You can find out file information using:
http://php.net/manual/en/function.finfo-file.php

Also, a common way is to use getimagesize() function, if it throws an error
or returns false its not an image.

I think it is a 2 step process, first you get the image from the url,
validate etc.

Then upload/send to your server.



On 26 May 2015 at 17:05, cmple <[email protected]> wrote:

> Hey Alejandro,
> Thanks for your reply!
> I have one more question, how can I apply the file Validation without using
> the global $_FILES[] variable?
>
> for example:
> $validator = new Validator\IsImage();
> $valid = $validator->isValid();
>
> Thanks!
> Roman.
>
>
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/ZF2-Import-and-validate-external-pictures-from-URLs-tp4662542p4662545.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: [email protected]
> Info: http://framework.zend.com/archives
> Unsubscribe: [email protected]
>
>
>

Reply via email to