Jump to content

Handling $_FILES["tmp_name"] concurrently


arbitrageur

Recommended Posts

I have another thread, but it's on a different question.

		// remake image
                if(create_image($fileExt, $_FILES["myfile"]["tmp_name"], $_FILES["myfile"]["tmp_name"], 80) !== FALSE){
		// generate thumbnail 
		if(generatethumbs2('.'.$fileExt, $_FILES["myfile"]["tmp_name"], 120, $_FILES["myfile"]["tmp_name"], 85) == TRUE){
			$aws = new s3;
			$aws = $aws->putObject($newFileName, $_FILES["myfile"]["tmp_name"]);
			image_string($username,$newFileName,$mysqli);
			}
		}

Is my code.

 

How do I access both the remade image AND the thumbnail? Currently, I can only access the thumbnail. I need to be able to access them concurrently for upload to Amazon s3.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/292252-handling-_filestmp_name-concurrently/
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.