Jump to content

obtaining size of rewritten image file


xagutxu

Recommended Posts

Hi:

 

I have found that something strange happens in my php script. I wish someone could explain me why.

 

I receive an image via POST, and it is saved as a temporary file in the server:

 

$tmpName  = $_FILES['uploadedfile']['tmp_name'];

 

The filesize I obtain doing: $fileSize = $_FILES['uploadedfile']['size']; is 79733, the same as if I did: filesize($tmpName).

 

Ok. Now, I resize the image, and save it in the same $tmpName, and everything is ok, but when I try to obtain the size, I get the first size, that is: 79733.

 

Anybody has an explanation?

 

Thank you in advance,

 

Xagutxu

 

Link to comment
https://forums.phpfreaks.com/topic/238591-obtaining-size-of-rewritten-image-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.