-1
I created this image upload code. But knowing that certain people can by 2000x1000, 5mb images I’d like to narrow that down to something even smaller. And insert it into my code?
-1
I created this image upload code. But knowing that certain people can by 2000x1000, 5mb images I’d like to narrow that down to something even smaller. And insert it into my code?
-1
Take a look at this video: https://www.youtube.com/watch?v=GBMXmDBXK7M It talks about how to resize images, they get smaller when resized, you can make them as big as you want and you can also limit the image size, for example:
$tamanhoPermitido = 1024 * 1024;
$tamanho = $_FILES['file']['size'];
if ($tamanho > $tamanhoPermitido) {?>
O tamanho do arquivo enviado é maior que o limite!
<?php }?>
NOTE: dude, the friend above is trying to help you and this is how you answer?
Citation
@hugocsl .. continuo na mesma, pois pretendo é ajudinha a desenvolver e a explicar um codigo de reducao de tamanho. Voces dão-me respostas tortas e... sem sentido para a minha questão.
So the guys won’t help you anyway.
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
Someone could possibly help?
– Snoopy12
http://php.net/manual/en/features.file-upload.php
– hugocsl