I would take note of this forum's new name 🙂
This sounds like a Coding forum post as this does not pertain to upgrade or release issues..
and as the sample code.. I'm just starting out in OOP myself..
Just out of curiosity.. what is the purpose of a blank construct (when you instantiate your object)? Looks like you could have simply used a good old fashioned function instead?
As for your problem, could you not include the last slash in the $uploadDir variable as such?
$c->uploadDir = '/images/';
and not bother with that last slash in the assigning of the variable nameOfFile?
$this->nameOfFile = $this->uploadDir . $this->finalFileName;
Cheers,
NRG
*Edit: This also caught my eye.. should this instantiating line:
$c = new ResizeImage();
be this instead?
$c = new R_resizeImage();