Apologies if this seems like a repeat question but I’m having a different doubt now. Basically I have a PHP file that is set up like this:
StackOverflow Latest Questions
try following for resizing the image: getData(); $uploadedFile = $data['profielfoto']; // get the original file info $originalPath = $uploadedFile['tmp_name']; $originalName = $uploadedFile['name']; $targetDirectory = dirname($originalPath); // original dir // create new filename $info = pathinfo($originalName); $resizedFilename = $info['filename'] . '_resized.' . $info['extension']; $resizedPath = $targetDirectory . ...